dic0 = {'k': 2, 'y': 1, 'o': 2, 'p': 1, 'r': 1, 't': 1, 'e': 2, 'n': 1, 'i': 1, '9': 1, '0': 1} S = input() dic = {} for i in range(len(S)): s = S[i] if s in dic: dic[s] += 1 else: dic[s] = 1 print(["No","Yes"][dic == dic0])