S = input()
K = 'keyence'

for j in range(len(S)):
    for i in range(7):
        left = K[:i]
        right = K[i:]
        if left in S[:j] and right in S[j:]:
            print('YES')
            exit()

print('NO')