Problem7988--ABC255 —— A - You should output ARC, though this is ABC.

7988: ABC255 —— A - You should output ARC, though this is ABC.

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 256 MiB

Description

Given integers R, C, and a 2×2 matrix A, print $A_{R,C}$.

Input

Input is given from Standard Input in the following format:
$R\ C$
$A_{1,1}\ A_{1,2}$
$A_{2,1}\ A_{2,2}$

Output

Print the answer as an integer.

Constraints

All values in input are integers.
1≤R,C≤2
$0≤A_{i,j}≤100$

Sample 1 Input

1 2
1 0
0 1

Sample 1 Output

0
We have $A_{1,2}=0$.

Sample 2 Input

2 2
1 2
3 4

Sample 2 Output

4
We have $A_{2,2}=4$.

Sample 3 Input

2 1
90 80
70 60

Sample 3 Output

70
We have $A_{2,1}=70$.

Source/Category