using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static int NN => int.Parse(ReadLine()); static int[] NList => ReadLine().Split().Select(int.Parse).ToArray(); static int[][] NArr(long n) => Enumerable.Repeat(0, (int)n).Select(_ => NList).ToArray(); static int[] LList(long n) => Enumerable.Repeat(0, (int)n).Select(_ => int.Parse(ReadLine())).ToArray(); public static void Main() { Solve(); } static void Solve() { var t = NN; var ans = new long[t][]; for (var u = 0; u < t; ++u) { var p = NList; var all = (long)p[0] * p[1] * p[2]; ans[u] = new long[] { all, all, all }; } WriteLine(string.Join("\n", ans.Select(ai => string.Join(" ", ai)))); } }