s = input()
keyence = 'keyence'
ans = 'NO'
for i in range(len(keyence)):
    a = keyence[:i]
    b = keyence[i:]
    if s.find(a) != -1 and s.find(b) != -1 and s.find(a) + len(a) - 1 < s.rfind(b):
        ans = 'YES'
print(ans)