s = input()
ans_flag = 0
if "keyence" in s:
  ans_flag = 1
  
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[idx+1:].find(second_half) != -1:
      ans_flag = 1
      
if ans_flag == 1:
  print("YES")
else:
  print("NO")