S = input()
keyence = "keyence"

if keyence in S:
  print("YES")
else:
  for i in range(len(keyence)):
    if keyence[0:i] in S:
      S.lstrip(keyence[0:i])
      if keyence[i:8] in S:
        print("YES")
        break
  else:
    print("NO")
    