#include<bits/stdc++.h>
using namespace std;
template<typename T>inline void read(T &x){
	short f=1;x=0;char c=getchar();
	while(!isdigit(c)){ if(c=='-')f=-1;c=getchar(); }
	while(isdigit(c)) x=(x<<3)+(x<<1)+(c^48),c=getchar();
	x*=f;
}
template<typename T>inline void write(T x){
	if(x<0)putchar('-'),x=-x;
	if(x>9)write(x/10);
	putchar(x%10+'0');
}
template<typename T>inline void writeln(T x){
	write(x);putchar('\n');
}
int main(){
	int a,b,c;read(a),read(b),read(c);
	write(a),putchar(' '),write(b),putchar(' '),writeln(3*c-a-b),
	write(4*c-2*a-b),putchar(' '),write(c),putchar(' '),writeln(2*a+b-2*c),
	write(a+b-c),putchar(' '),write(2*c-b),putchar(' '),writeln(2*c-a);
	return 0;
}
