S = input()
result = None
for i in range(1, len(S)):
    for j in range(2, len(S)-1):
        if S[:i] + S[j:] == 'keyence':
            result = True
            break
        else:
            result = False
    if result:
        break

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