S = input()

k = 'keyence'

if S.find(k) == 0 or S.find(k) == len(S) - 7:
    print('YES')
    exit()

for i in range(1, len(k)):
    if S.find(k[:i]) == 0 and S.find(k[i:]) == len(S) - 7 + i:
        print('YES')
        exit()

print('NO')

