import re
inp = input()
ref = "keyence"
pat = []
pat_comp = ""
for i, j in enumerate(ref):
    pat_comp += j
    pat.append((pat_comp, ref[i+1:]))

if inp.startswith("keyence"):
    print("YES")
elif inp.endswith("keyence"):
    print("YES")
else:
    for i, j in pat:
        p = i + ".*" + j
        if re.match(p, inp):
            print("YES")
            break
    else:
        print("NO")