s = input()

word = "keyence"

for i in range(len(word)):
    a = s.find(word[:i])
    b = s.rfind(word[i:])
    if(a == b or (a == 0 and b == len(s)-len(word[i:]))):
        print("YES")
        exit()

print("NO")