S = input()
ans = "keyence"
if S.find(ans) != -1:
    print("YES")
    exit()

for i in range(len(ans)-1):
    left = S.find(ans[:i+1])
    right = S.rfind(ans[i+1:])
    # print(ans[:i+1], ans[i+1:], left, right)
    if left < right and left!=-1 and right!=-1:
        print("YES")
        exit()
print("NO")