s = input()
ans = "NO"
ls = len(s)
if s[:7] == "keyence":
    ans = "YES"
elif s[-7:] == "keyence":
    ans = "YES"
else:
    for i in range(6):
        print(s[:i+1],s[ls-6+i:])
        if s[:i+1]+s[ls-6+i:] == "keyence":
            ans = "YES"
print(ans)