S = input()
if (S[0:7] == 'keyence') or (S[-7:] == 'keyence'):
  print("YES")
else:
  flag = 0
  for i in range(7):
    if S[:i] + S[-(7-i):] == 'keyence':
      print("YES")
      flag=1
  if flag==0:
    print("NO")