#include <iostream>
using namespace std;
int main() {
unsigned short n, r, c;
cin >> n;
int ** x = new int * [n];
for (int i = 0; i < n; i++)
x[i] = new int[n];
for (int i = 0; i < n; i++)
for (int j = 0; j < n; j++)
cin >> x[i][j];
cin >> r >> c;
for (int i = 0; i < r; i++) {
for (int j = 0; j < c; j++)
cout << x[i][j] << " ";
cout << endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7Cgl1bnNpZ25lZCBzaG9ydCBuLCByLCBjOwoJY2luID4+IG47CglpbnQgKiogeCA9IG5ldyBpbnQgKiBbbl07Cglmb3IgKGludCBpID0gMDsgaSA8IG47IGkrKykKCQl4W2ldID0gbmV3IGludFtuXTsKCWZvciAoaW50IGkgPSAwOyBpIDwgbjsgaSsrKQoJCWZvciAoaW50IGogPSAwOyBqIDwgbjsgaisrKQoJCQljaW4gPj4geFtpXVtqXTsKCWNpbiA+PiByID4+IGM7Cglmb3IgKGludCBpID0gMDsgaSA8IHI7IGkrKykgewoJCWZvciAoaW50IGogPSAwOyBqIDwgYzsgaisrKQoJCQljb3V0IDw8IHhbaV1bal0gPDwgIiAiOwoJCWNvdXQgPDwgZW5kbDsKCX0KCXJldHVybiAwOwp9
NgozMCAtMTAgMzAgLTY5IC04NCA3NQotMyAtMzkgNjAgMTUgNzUgLTc0CjM2IDY4IDM1IDIzIDI1IC00NAoxNiA0MiA4MyAxNSA1OSAtMTgKNzEgNDMgMzUgLTgxIC0zOCA1MQozNyAtNDkgNTUgMjYgNiAzMwo0IDU=
6
30 -10 30 -69 -84 75
-3 -39 60 15 75 -74
36 68 35 23 25 -44
16 42 83 15 59 -18
71 43 35 -81 -38 51
37 -49 55 26 6 33
4 5