import io.StdIn.{ readLong }

object Main extends App {
  val largeN = readLong

  val hnws = for {
    h <- 1 to 3500
    n <- 1 to 3500
    den = largeN * h * n
    num = 4 * h * n - largeN * n - largeN * h
    if num != 0 && den * num > 0 && den % num == 0
  } yield (h, n, den / num)

  val (h, n, w) = hnws(0)

  assert(4 / largeN == 1 / h + 1 / n + 1 / w)

  println("%d %d %d".format(h, n, w))
}
