T = gets.to_i T.times do a, b, c = gets.split.map(&:to_i) d = [a, b, c].inject(:lcm) puts [d, d, d].join(' ') end