s = input()
ans = "keyence"
a = []
j = 0


for i in range(len(s)):
    if s[i] == ans[j]:
        a.append(i)
        j += 1

b = [a[i + 1] - a[i] for i in range(len(a) - 1)]

if len(b) - 1 <= b.count(1):
    out = "YES"
else:
    out = "NO"

print(out)
