#include <bits/stdc++.h>
#define P pair<int,int>
using namespace std;
const int INF = 1e9 + 7, MOD = 1e9 + 7;
const long long LINF = 1e18;
const int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1};
int main() {
	int a, b, c, d, e, f, g, h, i;
	cin >> a >> b >> e;
	g = a + b - e;
	f = a + g - e;
	c = a + e - f;
	d = b + c - g;
	h = a + e - g;
	i = b + e - g;
	cout << a << " " << b << " " << c << endl << d << " " << e << " " << f << endl << g << " " << h << " " << i << endl;
	return 0;
}