# Arup Guha
# 9/8/2022
# Solution to 2022 UCF Qualification Round Problem: Easy-to-Pronouce Words

# For lookup.
VOWELS = "aeiou"

# Get word.
word = input().strip()

# Default answer.
res = 1

# Try all consecutive pairs. Anything that violates the rule,
# change the result.
for i in range(1, len(word)):
    if word[i] in VOWELS and word[i-1] in VOWELS:
        res = 0
        break
    if not (word[i] in VOWELS) and not (word[i-1] in VOWELS):
        res = 0
        break

# Ta da!
print(res)
