s=input()
n=len(s)
if s[0]!='k':
  if s[n-8:n]=='keyence':
    print('YES')
  else:
    print('NO')
elif s[n-1]!='e':
  if s[0:8]=='keyence':
    print('YES')
  else:
    print('NO')
elif s[0]=='k' and s[n-1]=='e':
  for i in range(1,7):
    if s[:i]+s[n-7+i:n]=='keyence':
      print('YES')
      exit()
print('NO')