#include<map>
#include<set>
#include<cmath>
#include<regex>
#include<queue>
#include<stack>
#include<bitset>
#include<vector>
#include<cstdio>
#include<string>
#include<cstring>
#include<iostream>
#include<algorithm>
#include<unordered_map>

#pragma warning(disable:4996)
using namespace std;

int a;
int b;
int c;
int var[3][3];

int main() {
	scanf("%d%d%d", &a, &b, &c);
	var[0][0] = a; var[0][1] = b; var[0][2] = 3 * c - a - b;
	var[1][0] = 3 * c - 2 * a - b + c; var[1][1] = c; var[1][2] = 2 * a + b + c - 3 * c;
	var[2][0] = a + b -c; var[2][1] = 2*c - b; var[2][2] = 3*c - a -c;
	for (int i = 0; i < 3; ++i) {
		for (int j = 0; j < 3; ++j) {
			printf("%d ", var[i][j]);
		}
		puts("");
	}
	return 0;
}