s = input()
correct_s = "keyence"
correct_count = 0
false_index_list = []

for i in range(len(s)):
    if s[i] == correct_s[correct_count]:
        correct_count += 1
    else:
        false_index_list.append(i)
    if correct_count == len(correct_s):
        break

if len(false_index_list) == len(s):
    print("NO")
    exit()

for i in range(1, len(false_index_list)):
    if false_index_list[i] - false_index_list[i-1] != 1:
        print("NO")
        exit()

print("YES")
exit()