a, b, c = int(input()), int(input()), int(input())
x = a + c - b
y = b + c - a
z = a + b - c
if all(i % 2 == 0 for i in [x, y, z]):
print(x // 2, 0, x // 2)
print(0, y // 2, y // 2)
print(z // 2, z // 2, 0)
else:
print('Impossible')
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
a, b, c = int(input()), int(input()), int(input())
x = a + c - b
y = b + c - a
z = a + b - c
if all(i % 2 == 0 for i in [x, y, z]):
print(x // 2, 0, x // 2)
print(0, y // 2, y // 2)
print(z // 2, z // 2, 0)
else:
print('Impossible')