s = input()
ans = 'NO'
pattern = 'keyence'

if pattern in s:
    ans = 'YES'

for i in range(1, len(pattern) - 1):
    x = pattern[:i]
    y = pattern[i:]
    p = 0
    while s.find(x, p) >= 0:
        p = s.find(x, p) + len(x)
        if s.find(y, p - 1) >= 0:
            ans = 'YES'
            break

print(ans)
