let () = Scanf.scanf "%d" (fun n ->
  try
    for h = 1 to 3500 do
      for w = h to 3500 do
        if 4 * h * w > n * w + n * h && (n * h * w) mod (4 * h * w - n * w - n * h) = 0
        then (Printf.printf "%d %d %d\n" h ((n * h * w) / (4 * h * w - n * w - n * h)) w; raise Not_found)
      done
    done
  with Not_found -> ())