# coding: utf-8
# Your code here!

S = input()
key = 'keyence'
char1 = []
char2 = ''
ans = ''

for i in range(len(S)):
    for j in range(i, len(S) + 1):
        char1 = S[i:j]
        char2 = S.replace(char1,"")
        if key == char2:
            print("YES")
            exit()
else:
    print("NO")