target = input()
search_string = 'keyence'
split_index = 7
while 0 <= split_index:
    split_index -= 1
    head = search_string[0:split_index]
    tail = search_string[split_index:]
    find_index = target.find(head)
    rfind_index = target.rfind(tail)
    # print('head: ' + str(find_index)  + ' : ' + head)
    # print('tail: ' + str(rfind_index) + ' : ' + tail)
    if find_index == -1 or rfind_index == -1:
        continue
    if (find_index + len(head)) <= rfind_index:
        print('YES')
        exit()
print('NO')