s = input()
end = len(s)
flg = False
for i in range(end,1,-1):
    for j in range(end):
        string = s.replace(s[j:i],'')
        if string == 'keyence':
            flg = True
            break
            
print('YES' if flg else 'NO')