from sys import stdin
for _ in range(int(stdin.readline())):
a, b, c = map(int, stdin.readline().split())
d = max(a, b, c)
if a == b == c:
print(*[a + 1] * 3)
else:
print(d - a + 1 if a != d else 0,d - b + 1 if b != d else 0, d - c + 1 if c != d else 0)
ZnJvbSBzeXMgaW1wb3J0IHN0ZGluCmZvciBfIGluIHJhbmdlKGludChzdGRpbi5yZWFkbGluZSgpKSk6CiAgICBhLCBiLCBjID0gbWFwKGludCwgc3RkaW4ucmVhZGxpbmUoKS5zcGxpdCgpKQogICAgZCA9IG1heChhLCBiLCBjKQogICAgaWYgYSA9PSBiID09IGM6CiAgICAgICAgcHJpbnQoKlthICsgMV0gKiAzKQogICAgZWxzZToKICAgICAgICBwcmludChkIC0gYSArIDEgaWYgYSAhPSBkIGVsc2UgMCxkIC0gYiArIDEgaWYgYiAhPSBkIGVsc2UgMCwgZCAtIGMgKyAxIGlmIGMgIT0gZCBlbHNlIDAp
MjYKNDMgNTggODIgCjcyIDgyIDg1IAoyOCA4MiA2MiAKNDUgODggNDUgCjM1IDM4IDI5IAo0NyA1OSA0NSAKMTYgNTQgOTEgCjg2IDE5IDc1IAo3OSA2NSA5MiAKNjIgNTQgMzkgCjggNjMgNTQgCjM3IDc2IDcgCjI2IDUyIDEwMCAKODIgMjMgNzYgCjUgMTkgNDEgCjE3IDMyIDc3IAo5MyA0OSA5MyAKMTkgMTEgMzYgCjc4IDU2IDU1IAo2NyAyOSAzNyAKNzYgMTAwIDcwIAoyMSA0MCA4NiAKMzIgNzQgODYgCjkzIDY1IDgzIAo5NyA1OCAzOCAKNCA4MSAyMSAKNjAgNzMgMTA=
26
43 58 82
72 82 85
28 82 62
45 88 45
35 38 29
47 59 45
16 54 91
86 19 75
79 65 92
62 54 39
8 63 54
37 76 7
26 52 100
82 23 76
5 19 41
17 32 77
93 49 93
19 11 36
78 56 55
67 29 37
76 100 70
21 40 86
32 74 86
93 65 83
97 58 38
4 81 21
60 73 10