input = STDIN.read.chomp
is_ok = false
[
    /^keyence.*/,
    /k.*eyence/,
    /ke.*yence/,
    /key.*ence/,
    /keye.*nce/,
    /keyen.*ce/,
    /keyenc.*e/,
    /.*keyence$/,
].each{ |pt|
    if input.match(pt) != nil
        is_ok = true
    end
}

puts is_ok ? "YES" : "NO"