#P399. 【例69.2】 矩阵交换行

【例69.2】 矩阵交换行

Description

Given a 5×55×5 matrix (mathematically, an r×cr×c matrix is a rectangular array of elements arranged in rr rows and cc columns), swap the nn-th row with the mm-th row and output the result.

Input Format

The input consists of 66 lines. The first 55 lines contain the elements of each row of the matrix (each element is an integer between 00 and 99), with elements separated by a single space.
The 66-th line contains two integers mm and nn, separated by a space (1m,n51 \leq m,n \leq 5).

Output Format

Output the matrix after swapping the rows. Each row of the matrix should be on a separate line, with elements separated by a single space.

Sample

1 2 2 1 2
5 6 7 8 3
9 3 0 5 3
7 2 1 4 6
3 0 8 2 4
1 5
3 0 8 2 4
5 6 7 8 3
9 3 0 5 3
7 2 1 4 6
1 2 2 1 2