import sys input = sys.stdin.readline from collections import * for _ in range(int(input())): A, B, C = map(int, input().split()) print(A*C, B*C, B*C)