s = input()

count = 1
string = 'keyence'
idx = 0
if s[-7:] == string:
    ans = 'YES'
elif s[:7] == string:
    ans = 'YES'
else:
    ans = 'NO'
    for i in range(1, 6):
        if s[:i] == string[:i] and s[-i:] == string[-i:]:
            ans = 'YES'
            break
print(ans)
        
    
