| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 (추가 시간 없음) | 1024 MB | 436 | 323 | 298 | 76.020% |
We define a word as easy-to-pronounce if every vowel in the word is immediately followed by a consonant and every consonant in the word is immediately followed by a vowel. The first letter of the word can be a vowel or consonant. Assume that the vowels are: a, e, i, o, u (note that the letter y is not a vowel, i.e., it is a consonant).
Given a word, print 1 (one) if it is easy-to-pronounce, 0 (zero) otherwise.
There is only one input line; it contains a word consisting of 1-30 lowercase letters (starting in column 1). Assume that there will not be any characters other than the lowercase letters in the input.
Print the appropriate message as described above.
contest
0
coaches
0
cocahes
1
ali
1