import java.util.*;
import java.lang.*;
import java.io.*;
class Ideone{
public static final int M = 18;
public static final int N = 24;
double[][] a = new double[M][N];
Scanner in
= new Scanner
(System.
in); for(int i = 0; i < M; i++) {
for(int j = 0; j < N; j++) {
a[i][j] = in.nextDouble();
}
}
int i , j;
i = in.nextInt();
j = in.nextInt();
for(int k = 0; k < M; k++){
double temp = a[k][i-1];
a[k][i-1] = a[k][j-1];
a[k][j-1] = temp;
}
for(int q = 0; q < M; q++){
for(int z = 0; z < N; z++){
System.
out.
print(a
[q
][z
] + ((z
== N
-1)? "\n": " ")); }
}
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgoJCmNsYXNzIElkZW9uZXsKCQoJcHVibGljIHN0YXRpYyBmaW5hbCBpbnQgTSA9IDE4OwoJcHVibGljIHN0YXRpYyBmaW5hbCBpbnQgTiA9IDI0OwoKCglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24gewoJCQoJCWRvdWJsZVtdW10gYSA9IG5ldyBkb3VibGVbTV1bTl07CgkJCgkJU2Nhbm5lciBpbiA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbik7CgkJZm9yKGludCBpID0gMDsgaSA8IE07IGkrKykgewoJCQlmb3IoaW50IGogPSAwOyBqIDwgTjsgaisrKSB7CgkJCQlhW2ldW2pdID0gaW4ubmV4dERvdWJsZSgpOwoJCQl9CgkJfQoJCWludCBpICwgajsKCQkKCQlpID0gaW4ubmV4dEludCgpOwoJCWogPSBpbi5uZXh0SW50KCk7CgkKCQlmb3IoaW50IGsgPSAwOyBrIDwgTTsgaysrKXsKCQkJZG91YmxlIHRlbXAgPSBhW2tdW2ktMV07CgkJCWFba11baS0xXSA9IGFba11bai0xXTsKCQkJYVtrXVtqLTFdID0gdGVtcDsKCQl9CgkJCgkJZm9yKGludCBxID0gMDsg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xIDIyIDIzCjAgMSAyIDMgNCA1IDYgNyA4IDkgMTAgMTEgMTIgMTMgMTQgMTUgMTYgMTcgMTggMTkgMjAgMjEgMjIgMjMKMCAxIDIgMyA0IDUgNiA3IDggOSAxMCAxMSAxMiAxMyAxNCAxNSAxNiAxNyAxOCAxOSAyMCAyMSAyMiAyMwowIDEgMiAzIDQgNSA2IDcgOCA5IDEwIDExIDEyIDEzIDE0IDE1IDE2IDE3IDE4IDE5IDIwIDIxIDIyIDIzCjAgMSAyIDMgNCA1IDYgNyA4IDkgMTAgMTEgMTIgMTMgMTQgMTUgMTYgMTcgMTggMTkgMjAgMjEgMjIgMjMKMCAxIDIgMyA0IDUgNiA3IDggOSAxMCAxMSAxMiAxMyAxNCAxNSAxNiAxNyAxOCAxOSAyMCAyMSAyMiAyMwowIDEgMiAzIDQgNSA2IDcgOCA5IDEwIDExIDEyIDEzIDE0IDE1IDE2IDE3IDE4IDE5IDIwIDIxIDIyIDIzCjAgMSAyIDMgNCA1IDYgNyA4IDkgMTAgMTEgMTIgMTMgMTQgMTUgMTYgMTcgMTggMTkgMjAgMjEgMjIgMjMKMyA2
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
3 6