fun main(args : Array<String>) {
    val N = readLine()!!.toDouble()

    for (n in 1..3500) {
        for (w in 1..3500) {
            val h = (N*n*w) / (4*n*w - N*w - N*n)
            if (h - h.toLong().toDouble() == 0.0 && h > 0) {
                println("${h.toLong()} $n $w")
                return
            }
        }
    }
}