s = input()
t = "keyence"
y=0
if "keyence" in s:
    print("YES")
else:
    for i in range(len(s)):
        if s[i] == t[i]:
            y = 1
            print("YES")
            break
        else:
            if y != 1:
                print("NO")
                break
