k = "keyence"
l = len(k)

S = input()

for i in range(l):
    print(i, k[:i], k[i:], S.find(k[:i]), S.rfind(k[i:]))

if any([0 <= S.find(k[:i]) < S.rfind(k[i:]) for i in range(l)]):
    print("YES")
else:
    print("NO")