#include<cstdio>
int a,b,c,d,e,f,g,h,i;
int main(){
    scanf("%d%d%d",&a,&b,&c);
    d=3*c-a-b;
    e=2*c-d;
    f=3*c-a-e;
    g=2*c-f;
    h=3*c-d-g;
    i=2*c-b;
    printf("%d %d %d\n%d %d %d\n%d %d %d\n",a,b,d,f,c,g,e,i,h);
}