#include<iostream>
#include<sstream>
#include<fstream>
#include<string>
#include<vector>
#include<deque>
#include<queue>
#include<stack>
#include<set>
#include<map>
#include<algorithm>
#include<functional>
#include<utility>
#include<bitset>
#include<cmath>
#include<cstdlib>
#include<ctime>
#include<cstdio>

using namespace std;

#define REP(i,n) for(int i=0;i<int(n);i++)
#define foreach(c,itr) for(__typeof((c).begin()) itr=(c).begin();itr!=(c).end();itr++)
typedef long long ll;
typedef pair<int,int> P;

int main(void){
	int i;
	int A,B,C;
	cin >> A >> B >> C;
	cout << A << ' ' << B << ' ' << 3*C-A-B << endl;
	cout << 4*C-2*A-B << ' ' << C << ' ' << 2*A+B-2*C << endl;
	cout << A+B-C << ' ' << 2*C-B << ' ' << 2*C-A << endl;

	return 0;
}
