import sys
num_list = input()
key = 'keyence'
i = 0



while num_list[i]==key[i]:
    i+=1
    if i == 7:
        print('YES')
        exit()
n = i



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


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