import java.io.PrintWriter import java.util.* import kotlin.math.* fun PrintWriter.solve() { val t = nextInt() case@for (_i in 0 until t) { val a = nextInt() val b = nextInt() val c = nextInt() val min = minOf(a, b, c) if (a == min) { for (x in a .. 200000 step a) { if (abs(b - c) < x && x < b + c) { println("$x $b $c") continue@case } } } else if (b == min) { for (x in b .. 200000 step b) { if (abs(c - a) < x && x < c + a) { println("$a $x $c") continue@case } } } else { for (x in c .. 200000 step c) { if (abs(a - b) < x && x < a + b) { println("$a $b $x") continue@case } } } } } 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