def solve a, b, c = gets.split.map(&:to_i) d = a.lcm(b).lcm(c) x = d * 5 y = d * 4 z = d * 3 puts "%d %d %d" % [x, y, z] end T = gets.to_i T.times do solve end