S = input()

KEYENCE = 'keyence'

if S[0:7] == KEYENCE:
  print('YES')
elif S[0] == 'k':
  counter = 1
  for i in range(6):
    if S[i+1]==KEYENCE[i+1]:
      counter +=1
  if S[-(7-counter):] ==KEYENCE[counter:]:
    print('YES')
    exit()
  else:
    print('NO',counter)
    exit()
elif S[-7:] == KEYENCE:
  print('YES')
  exit()
else:
  print('NO')