#include <bits/stdc++.h>
using namespace std;
int a, b, c;
int main(void){
    scanf("%d%d%d", &a, &b, &c);
    cout << a <<" "<< b << " "<< 3 * c - a - b <<" \n";
    cout << 4 * c - 2 * a - b << " " << c << " " << 2 * a + b - 2 * c << " \n";
    cout << a + b - c << " " << 2 * c - b << " " << 2 * c - a << " \n";
    return 0;
}