

num_list = input()
key = 'keyence'

i = 0

if num_list == key:
    print('YES')

else:
    while num_list[i]==key[i]:
        i+=1
    n = i



    i = -1
    while num_list[i]==key[i]:
        i -= 1
        n += 1

    if n >= 6:
        print('YES')
    else:
        print('NO')