L = list(input())
A = list('keyence')

if A == L:
  print("YES")
  exit()
if len(L) > len(A) + 1:
  print("NO")
  exit()
for i in range(len(L)):
  if A == L[0:i] + L[i:len(L)]:
    print("YES")
    exit()
print("NO")