t = int(input()) for i in range(t): a, b, c = map(int, input().split()) print(a, b * 10000000, c * 10000000)