S = input()

l = list('keyence')
counter = 0
former_result = True
swiched_count = 0
for i in S:
    if counter < len(l) and i == l[counter]:
        former_result = True
        counter += 1
    else:
        if former_result:
            swiched_count += 1
        former_result = False

if swiched_count <= 1 and counter == len(l):
    print('YES')
else:
    print('NO')