str_input = input().rstrip()

str_input_list = []
for a in str_input:
    str_input_list.append(a)


keyence_list = ['k', 'e', 'y', 'e', 'n', 'c', 'e']

for a in range(7):
    if keyence_list[a] in str_input_list:
        keyence_list[a] = '*'

        for b in range(len(str_input_list)):
            if str_input_list[b] == keyence_list[a]:
                str_input_list.remove(b)
                break

if keyence_list == ['*', '*', '*', '*', '*', '*', '*']:
    print('YES')
else:
    print('NO')