S = input()
K = "keyence"
i = 0
j = 0
flag = 0
while i < len(S):
  if(j >= 6):
    if(len(S) - i != 1):
      flag = flag + 1
    break
  if(S[i]==K[j]):
    j = j + 1
    i = i + 1
  if(S[i]!=K[j]):
    flag = flag + 1
    while S[i] != K[j]:
      i = i + 1
    
if flag == 0 or flag == 1:
  print("YES")
else:
  print("NO")