Problems
Print Matrix
Print Matrix
Given n \times n matrix — let's call it [1..n] \times [1..n] array. For given values r and c print the [1..r] \times [1..c] array (r rows and c columns of the given array).
Input data
First line contains number n~(1 \le n \le 100). Next lines contains the n \times n matrix. The last line contains two integers r and c~(1 \le r, c \le n). All numbers in the matrix are no more than 100 by absolute value.
Output data
Print r \times c matrix.
Examples
Input example #1
4 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 3 2
Output example #1
1 2 5 6 9 1
Input example #12
5 1 5 -3 2 6 6 3 34 5 8 10 12 3 18 -25 13 22 11 9 45 23 39 20 15 -49 4 3
Output example #12
1 5 -3 6 3 34 10 12 3 13 22 11