S = input()
#N = int(input())
#N = list(map(int, input().split()))
# a = list(map(int, input().split()))
# X = [int(input()) for _ in range(N)]

ans = 'YES'
keyence = 'keyence'

for i in range(len(S)):
    if i == 7:
        S = S[0:7]
        break
    if keyence[i] == S[i]:
        continue
    else:
        S = S[0:i] + S[len(S) - 1 - i:]
        break


if S == keyence:
    print('YES')
else:
    print('NO')
