key_str = "keyence"
key_list = list(key_str)
string = input()
str_list = list(string)
count = 0
flg = True
for key in key_list:
  if(str_list[count] != key):
    key_str[count:]
    if(string.endswith(key_str)):
      print("YES")
    else:
      print("NO")
    flg = False
    break
  count+=1
if(flg):
  print("YES")
  
  
    
  
