arr = input()
KEY = "keyence"

def solve():
  index = 0
  state = 0
  for letter in arr:
    print(arr, state)
    if letter == KEY[index]:
      index+=1
      if index == 7:
        return "YES"
      if state == 1:
        state = 2
    else:
      if state == 0:
        state = 1
      elif state == 1:
        pass
      elif state == 2:
        return "NO"
  return "NO"

print(solve())