DBG = true
s = gets.chomp
k = 'keyence'
if  s[0] + s[-6..-1] == k ||
    s[0..1] + s[-5..-1] == k ||
    s[0..2] + s[-4..-1] == k ||
    s[0..3] + s[-3..-1] == k ||
    s[0..4] + s[-2..-1] == k ||
    s[0..5] + s[-1] == k ||
    s[0..6]  == k
    print 'YES'
else
    print 'NO'
end
