using static System.Math; using System; public class Hello { static void Main() { var T = int.Parse(Console.ReadLine().Trim()); while (T-- > 0) { string[] line = Console.ReadLine().Trim().Split(' '); var aa = Array.ConvertAll(line, long.Parse); getAns(aa); } } static void getAns(long[] aa) { Array.Sort(aa); var a = aa[0]; var b = aa[1]; var c = aa[2]; var t = c - a; var y = (t / b + 1L) * b; var abt = Abs(y - c); var x = (abt / a + 1L) * a; Console.WriteLine("{0} {1} {2}",x,y,c); } }