import sys

S = input()

T = 'keyence'

ans = 0
for s in zip(S, T):
    if s[0] == s[1]:
        ans += 1
    else:
        break

if ans == 7:
    print('YES')
    sys.exit()

for s in zip(S[::-1], T[::-1]):
    if s[0] == s[1]:
        ans += 1
    else:
        break

print('YES' if ans == 7 else 'NO')