S = input() s = 'kyoprotenkei90' k = 2 y = 1 o = 2 p = 1 r = 1 t = 1 e = 2 n = 1 i = 1 nine = 1 zero = 1 for i in range(len(S)): if S[i] in s: if 'k' == S[i]: k -= 1 if 'y' == S[i]: y -= 1 if 'o' == S[i]: o -= 1 if 'p' == S[i]: p -= 1 if 'r' == S[i]: r -= 1 if 't' == S[i]: t -= 1 if 'e' == S[i]: e -= 1 if 'n' == S[i]: n -= 1 if 'i' == S[i]: i -= 1 if '9' == S[i]: nine -= 1 if '0' == S[i]: zero -= 1 if (k+y+o+p+r+t+e+n+i+nine+zero) == 0: print('Yes') else: print('No')