fun main(args: Array<String>) {

    fun calc(h: Int, n: Int, w: Int, N: Int): Double {
        var ans: Double = 1.0
        ans *= N
        ans *= n * w + h * w + h * n
        ans /= h.toDouble() * n * w
        return ans
    }

    val N = readLine()!!.toInt()
    for (h in 1..3500) {
        for (n in 1..3500) {
            var l = 1
            var r = 3500
            while (l + 1 < r) {
                val w = (l + r) / 2
                val ans = calc(h, n, w, N)
                if (4.0 == ans) {
                    print("$h $n $w")
                    return
                }
                if (4.0 < ans) {
                    l = w
                } else {
                    r = w
                }
            }
        }
    }

}
