s = input()
keyence = ["k", "e", "y", "e", "n", "c", "e"]
idx = 0
for i in range(len(s)):
    if s[i] == keyence[idx]:
        idx += 1
    if idx == len(keyence):
        print("YES")
        exit()

print("NO")

