S = input()
length = len(S)
found = False
for i in range(length):
    for j in range(i, length):
        if S[:i] + S[-j:] == 'keyence':
            found = True
            break
    if found:
        break

if found:
    print('YES')
else:
    print('NO')
