S=input()
N=len(S)
T="keyence"

for i in range(1,N):
  #print(S[:i],S[i:])
  for j in range(1,7):
    #print( T[:j], T[j:] )
    if S[:i].count(T[:j]) >=1:
      if S[i:].count(T[j:]) >=1:
        ans="YES"
        print("YES")
        exit()
else:
  print("NO")