#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i = 0; i < (int)n; i++)
using ll = long long;

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