# -*- coding:utf-8 -*-
import re
input_str = input()
pattern_1 = r"[^keyence]+?keyence"
pattern_2 = r"k[^keyence]+?eyence"
pattern_3 = r"ke[^keyence]+?yence"
pattern_4 = r"key[^keyence]+?ence"
pattern_5 = r"keye[^keyence]+?nce"
pattern_6 = r"keyen[^keyence]+?ce"
pattern_6 = r"keyenc[^keyence]+?e"
pattern_7 = r"keyence[^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')