题库练习 Romaji
← 上一题 下一题 →

A11928 | Romaji

时间限制1s
内存限制256MB
通过 / 提交0/0

题目描述

Vitya has just started learning Berlanese language. It is known that Berlanese uses the Latin alphabet. Vowel letters are "a", "o", "u", "i", and "e". Other letters are consonant.

In Berlanese, there has to be a vowel after every consonant, but there can be any letter after any vowel. The only exception is a consonant "n"; after this letter, there can be any letter (not only a vowel) or there can be no letter at all. For example, the words "harakiri", "yupie", "man", and "nbo" are Berlanese while the words "horse", "king", "my", and "nz" are not.

Help Vitya find out if a word $s$ is Berlanese.

输入格式

The first line of the input contains the string $s$ consisting of $|s|$ ( $1\leq |s|\leq 100$ ) lowercase Latin letters.

输出格式

Print "YES" (without quotes) if there is a vowel after every consonant except "n", otherwise print "NO".

You can print each letter in any case (upper or lower).

输入输出样例

输入 #1
sumimasen
输出 #1
YES
输入 #2
ninja
输出 #2
YES
输入 #3
codeforces
输出 #3
NO
C++ 编辑器
输入
输出