import java.io.PrintWriter import java.util.* import kotlin.math.* fun PrintWriter.solve() { val t = nextInt() for (_i in 0 until t) { val a = nextInt() val b = nextInt() val c = nextInt() val k1 = abs(a - b) / c + 1 if (c * k1 < a + b) { println("$a $b ${c * k1}") continue } val k2 = abs(b - c) / a + 1 if (a * k2 < b + c) { println("${a * k2} $b $c") continue } val k3 = abs(c - a) / b + 1 if (b * k3 < c + a) { println("$a ${b * k3} $c") continue } } } fun main() { val writer = PrintWriter(System.out, false) writer.solve() writer.flush() } // region Scanner private var st = StringTokenizer("") private val br = System.`in`.bufferedReader() fun next(): String { while (!st.hasMoreTokens()) st = StringTokenizer(br.readLine()) return st.nextToken() } fun nextInt() = next().toInt() fun nextLong() = next().toLong() fun nextLine() = br.readLine() fun nextDouble() = next().toDouble() // endregion