S=input()
def func(S):
  target="keyence"
  for i in range(6):
    a=target[:i]
    b=target[i:]
    if S.find(a)!=-1 and S.find(b,S.find(a)+1)!=-1:
      return True
  return False

if func(S):
  print('YES')
else:
  print('NO')
