No.8061 uxs hxixtya pyuyn ixc hyixa kxuyn
Problem Statement
Consider performing the following operation on a string $S$ any number of times.
・Choose $1$ lowercase English letter and replace all occurrences of that letter in the string with spaces.
If this can turn the string into the form
$0$ or more spaces + a string of $2$ or more characters whose odd-numbered characters are lowercase English letters and whose even-numbered characters are spaces + $0$ or more spaces
print 'Yes'; otherwise, print 'NO'.
Input
$S$
$\require{cancel}$
$\cancel{1} 0(2020/04/10 15:06更新 テストケースに入力が存在しないものがあったため) \leq \vert S \vert \leq100$
$S$ consists of lowercase English letters and spaces
Output
Print a newline at the end.
Sample
Sample 1
Input
atcoder
Output
Yes
One example is "choose t,o,e and perform the operation".
Sample 2
Input
abcabc
Output
NO
None of 'abcabc',' bc bc','a ca c','ab ab ','a$\ \ $a$\ \ $',' b$\ \ $b ','$\ \ $c$\ \ $c','$\ \ \ \ \ \ $' satisfies the condition.
Sample 3
Input
a ab
Output
Yes
Sample 4
Input
Output
NO
The input may consist of only spaces.
Sample 5
Input
u s h i t a p u n i c h i a k u n
Output
Yes
U shi ta pu ni ki a ku n lol
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。
googol_S0
Ebishu