import re
input_str = input()
pattern_1 = r".+?keyence$"
pattern_2 = r"^k.+?yence$"
pattern_3 = r"^ke.+?yence$"
pattern_4 = r"^key.+?ence$"
pattern_5 = r"^keye.+?nce$"
pattern_6 = r"^keyen.+?ce$"
pattern_6 = r"^keyenc.+?e$"
pattern_7 = r"^keyence.+?"
pattern_8 = r"^keyence$"
match_obj1 = re.match(pattern_1, input_str)
match_obj2 = re.match(pattern_2, input_str)
match_obj3 = re.match(pattern_3, input_str)
match_obj4 = re.match(pattern_4, input_str)
match_obj5 = re.match(pattern_5, input_str)
match_obj6 = re.match(pattern_6, input_str)
match_obj7 = re.match(pattern_7, input_str)
match_obj8 = re.match(pattern_8, input_str)
if match_obj1 or match_obj2 or match_obj3 or match_obj4 or match_obj5 or match_obj6 or match_obj7 or match_obj8:
  print('YES')
else:
  print('NO')
