#include <bits/stdc++.h>
using namespace std;
int main() {
	int X[3][3];
	int A, B, C;
	cin >> A >> B >> C;
	X[0][0] = A, X[0][1] = B, X[1][1] = C;
	int S = 3 * C;
	X[0][2] = 3 * C - A - B;
	X[1][0] = 4 * C - 2 * A - B;
	X[1][2] = 2 * A + B - 2 * C;
	X[2][0] = A + B - C;
	X[2][1] = S - B - C;
	X[2][2] = S - A - C;
	for(int i = 0; i < 3; i++) {
		for(int j = 0; j < 3; j++) {
			cout << X[i][j] << (j != 2 ? " ": "");
		}
		cout << endl;
	}
	return 0;
}