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

    for (h in 1..3500L) {
        for (n in h..3500L) {
            var l = 1L
            var u = 4000L

            while (u - l > 1) {
                val w = (l + u) / 2

                if (4 * h * n * w == N * n * w + N * h * w + N * h * n) {
                    println("$h $n $w")
                    return
                }

                val lhs = 4.0 / N
                val rhs = 1.0 / h + 1.0 / n + 1.0 / w

                if (lhs > rhs) {
                    u = w
                } else {
                    l = w
                }
            }
        }
    }
}
