//1行の和は3Cと予想し, マスを埋めるといける.
#include <iostream>
using namespace std;

int a, b, c;

int main() {
	cin >> a >> b >> c;
	
	cout << a << " " << b << " " << 3 * c - a - b << endl;
	cout << -2 * a - b + 4 * c << " " << c << " " << -2 * c + 2 * a + b << endl;
	cout << -c + a + b << " " << 2 * c - b << " " << 2 * c - a << endl;
	return 0;
}