問題
B – choku語
回答
X = input() while X: if len(X)>=2 and X[-2:] == 'ch': X = X[:-2] elif X[-1:] == 'o' or X[-1:] == 'k' or X[-1:] == 'u': X = X[:-1] else: print('NO') break else: print('YES')
Freedom is a responsible choice.
X = input() while X: if len(X)>=2 and X[-2:] == 'ch': X = X[:-2] elif X[-1:] == 'o' or X[-1:] == 'k' or X[-1:] == 'u': X = X[:-1] else: print('NO') break else: print('YES')