S = input()

avi = False
if len(S) != 7:
    for i in range(len(S) - 7):
        w = S[:i] + S[(i + (len(S) - 7)):]
#        print(w)
        if w == "keyence":
            avi = True
            break
elif S == "keyence":
    avi = True

if avi:
    print("YES")
else:
    print("NO")