import java.util.*;
import java.lang.*;
import java.io.*;
class Ideone {
public static void main
(String[] args
) { Scanner x
= new Scanner
(System.
in); int n;
n = x.nextInt();
double [][]m = new double[n][n];
double [][]m1 = new double[n-1][n-1];
for (int i=0; i<n; i++) {
for (int j=0; j<n; j++) {
m[i][j] = x.nextDouble();
}
}
int deli, delj;
deli = x.nextInt();
delj = x.nextInt();
for (int i=0, ln=0; ln<n-1;) {
if (i!=deli-1) {
for (int j=0, cn=0; cn<n-1; j++, cn++) {
if (j==delj-1) j++;
m1[ln][cn]=m[i][j];
}
i++;
ln++;
} else i++; }
m=m1;
for (int i=0; i<n-1; i++) {
for (int j=0; j<n-1; j++) {
System.
out.
print(m
[i
][j
]+" "); }
}
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CiAKY2xhc3MgSWRlb25lIHsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB7CgkJU2Nhbm5lciB4ID0gbmV3IFNjYW5uZXIgKFN5c3RlbS5pbik7CgkJaW50IG47CgkJbiA9IHgubmV4dEludCgpOwoJCWRvdWJsZSBbXVtdbSA9IG5ldyBkb3VibGVbbl1bbl07CgkJZG91YmxlIFtdW11tMSA9IG5ldyBkb3VibGVbbi0xXVtuLTFdOwoJCWZvciAoaW50IGk9MDsgaTxuOyBpKyspIHsKCQkJZm9yIChpbnQgaj0wOyBqPG47IGorKykgewoJCQkJbVtpXVtqXSA9IHgubmV4dERvdWJsZSgpOwoJCQl9CgkJfQoJCWludCBkZWxpLCBkZWxqOwoJCWRlbGkgPSB4Lm5leHRJbnQoKTsKCQlkZWxqID0geC5uZXh0SW50KCk7CgkJZm9yIChpbnQgaT0wLCBsbj0wOyBsbjxuLTE7KSB7CgkJCWlmIChpIT1kZWxpLTEpIHsKCQkJCWZvciAoaW50IGo9MCwgY249MDsgY248bi0xOyBqKyssIGNuKyspIHsKCQkJCQlpZiAoaj09ZGVsai0xKSBqKys7CgkJCQkJbTFbbG5dW2NuXT1tW2ldW2pdOwoJCQkJfQoJCQkJaSsrOwoJCQkJbG4rKzsKCQkJfSBlbHNlIGkrKzsgfQoJCW09bTE7CgkJZm9yIChpbnQgaT0wOyBpPG4tMTsgaSsrKSB7CgkJCWZvciAoaW50IGo9MDsgajxuLTE7IGorKykgewoJCQkJU3lzdGVtLm91dC5wcmludChtW2ldW2pdKyIgICAgIik7CgkJCX0KCQkJU3lzdGVtLm91dC5wcmludGxuKCk7CgkJfQoJfQp9