S=input()
check=0

answer='NO'

for i in range(len(S)):
  if check==0 and S[i]=='k':
    check+=1
  elif check==1 and S[i]=='e':
    check+=1
  elif check==2 and S[i]=='y':
    check+=1
  elif check==3 and S[i]=='e':
    check+=1
  elif check==4 and S[i]=='n':
    check+=1
  elif check==5 and S[i]=='c':
    check+=1
  elif check==6 and S[i]=='e':
    answer='YES'

print(answer)