s = input()

ans = 'keyence'
ret = 'NO'
if s[:7] == ans:
    ret = 'YES'
elif s[-7:] == ans:
    ret = 'YES'
else:
    for i in range(7):
        if s[:i] == ans[:i] and s[-i:] == ans[-i:]:
            ret = 'YES'
print(ret)
