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 min = minOf(a, b, c) if (a == min) { val k = abs(b - c) / a + 1 println("${a * k} $b $c") } else if (b == min) { val k = abs(c - a) / b + 1 println("$a ${b * k} $c") } else { val k = abs(a - b) / c + 1 println("$a $b ${c * k}") } } } 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