s = input()
ans = "keyence"
if ans in s:
    print("Yes")
    exit()
for i in range(100):
    if ans[:i+1] ==s[:i+1]:
        if ans[8-i:] == s[len(s)-i:]:
            print("Yes")
            exit()
print("No")
