Print Matrix#8530

Print Matrix

1 second
128 megabytes
Very easy

A matrix of size n \times n is given, referred to as the [1 .. n] \times [1 .. n] array. For given and , print a submatrix of size [1 .. r] \times [1 .. c], consisting of the first rows and the first columns of the original matrix.

Input

The first line contains an integer n~(1 \le n \le 100). The next lines contain the elements of an n \times n matrix. The last line contains two integers and c~(1 \le r, c \le n). All matrix elements do not exceed in absolute value.

Output

Print a submatrix of size r \times c, consisting of the first rows and the first columns of the original matrix.

Examples

Example 1

Loading
Loading

Example 12

Loading
Loading