i = gets.chop
#keyence
flg = false
if i[0] == "k" then
    if i[-6..-1] == "eyence"
    flg = true
    end
end
if i[0..1] == "ke" then
    if i[-5..-1] == "yence"
    flg = true
    end
end
if i[0..2] == "key" then
    if i[-4..-1] == "ence"
    flg = true
    end
end
if i[0..3] == "keye" then
    if i[-3..-1] == "nce"
    flg = true
    end
end
if i[0..4] == "keyen" then
    if i[-2..-1] == "ce"
    flg = true
    end
end
if i[0..5] == "keyenc" then
    if i[-1] == "e"
    flg = true
    end
end
if i == "keyence" then
    flg = true
end

if flg then
    puts "YES"
else
    puts "NO"
end
