test = "keyence"
S = input()
index = 0
for si in S:
    if si == test[index]:
        index += 1
        if index == len(test):
            break

if index == len(test):
    print("YES")
else:
    print("NO")