string = input()
#print(string[1])
if 'k' in string and 'eyence' in string:
  if string.index('k')<string.rfind('eyence'):
  	print("YES")
elif 'ke' in string and 'yence' in string:
  if string.index('ke')<string.rfind('yence'):
  	print("YES")  
elif 'key' in string and 'ence' in string:
  if string.index('key')<string.rfind('ence'):
  	print("YES")
elif 'keye' in string and 'nce' in string:
  if string.index('keye')<string.rfind('nce'):
  	print("YES")
elif  'keyen' in string and 'ce' in string:
  if string.index('keyen')<string.rfind('ce'):
  	print("YES")
elif  'keyenc' in string and 'e' in string:
  if string.index('keyenc')<string.rfind('e')-3:
  	print("YES")
  else:
  	print("NO")
elif 'keyence' in string:
  	print("YES")
else:
  print("NO")