s = input()
ans_flag = False
if "keyence" in s:
  ans_flag = True
  
t = "keyence"
for i in range(1,7):
  first_half = t[:i]
  second_half = t[i:]
  
  idx = s.find(first_half)
  if idx != -1:
    if s[-len(second_half):] == second_half:
      ans_flag = True
      
print("YES" if ans_flag else "NO")