s=input()
ans="keyence"

for i in range(len(ans)):
    left=ans[:i]
    right=ans[i:]
    if ((left in s) and (right in s)) and (s.index(left)<=s.index(right)):
        print("YES")
        exit()
print("NO")