S = input()

if "keyence" in S:
  print("YES")
elif "keyenc" in S:
  S.replace("keyenc","")
  if "e" in S:
    print("YES")
  else:
    print("NO")
elif "keyen" in S:
  S.replace("keyen","")
  if "ce" in S:
    print("YES")
  else:
    print("NO")
elif "keye" in S:
  S.replace("keye","")
  if "nce" in S:
    print("YES")
  else:
    print("NO")
elif "key" in S:
  S.replace("key","")
  if "ence" in S:
    print("YES")
  else:
    print("NO")
elif "ke" in S:
  S.replace("ke","")
  if "yence" in S:
    print("YES")
  else:
    print("NO")
elif "k" in S:
  S.replace("k","")
  if "eyence" in S:
    print("YES")
  else:
    print("NO")
else:
  print("NO")