s=input() ans=0 for i in 'kyoprotenkei90': if i in s: ans+=1 if ans==14: print('Yes') else: print('No')