import sys

S = input()
target = "keyence"
del_len = len(S) - len(target)

if S=="target":
    print("YES")
else:
    for i in range(len(S) - del_len+1):
        s = S[:i] + S[i + del_len:]
        print(s)
        if s==target:
            print("YES")
            sys.exit()
print("NO")