/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
static final int n =3;
public static void main
(String[] args
){
Scanner sc
= new Scanner
(System.
in);
int A[][] = new int [n][n];
int i,j;
for (i=0; i < n; i++){
for (j=0; j < n; j++){
A[i][j] = sc.nextInt();
}
}
for(int x = 0; x < n; x++){
for(int y=0; y < n; y++){
System.
out.
print(A
[x
][y
] + " "); }
}
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKICAgIHN0YXRpYyBmaW5hbCBpbnQgbiA9MzsKCiAgICBwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncyl7CgogICAgICAgIFNjYW5uZXIgc2MgPSBuZXcgU2Nhbm5lcihTeXN0ZW0uaW4pOwoKICAgICAgICBpbnQgQVtdW10gPSBuZXcgaW50IFtuXVtuXTsKCiAgICAgICAgaW50IGksajsKCiAgICAgICAgZm9yIChpPTA7IGkgPCBuOyBpKyspewogICAgICAgICAgICBmb3IgKGo9MDsgaiA8IG47IGorKyl7CiAgICAgICAgICAgICAgICBBW2ldW2pdID0gc2MubmV4dEludCgpOyAKICAgICAgICAgICAgfSAgICAKICAgICAgICB9CiAgICAgICAgCiAgICAgICAgZm9yKGludCB4ID0gMDsgeCA8IG47IHgrKyl7CiAgICAgICAgCWZvcihpbnQgeT0wOyB5IDwgbjsgeSsrKXsKICAgICAgICAJCVN5c3RlbS5vdXQucHJpbnQoQVt4XVt5XSArICIgIik7CiAgICAgICAgCX0KICAgICAgICAJU3lzdGVtLm91dC5wcmludGxuKCk7CiAgICAgICAgfQogICAgfQp9