for _ in range(int(input())): l = int(input()) print(l, l//4*3, l//4*5)