s = input()
a = "keyence"
if s[:7] == a or a[-7:] == a:
  print("YES")
else:
  for i in range(7):
    if s[i] != a[i]:
      pos = i
      break
  if a[-7+i:] == s[-7+i:]:
    print("YES")
  else: print("NO")