#AT2197. A - You should output ARC, though this is ABC.

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

当前没有测试数据。

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

Score : $100$ points

Problem Statement

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

Constraints

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

Input

Input is given from Standard Input in the following format:

RR CC

A1,1A_{1,1} A1,2A_{1,2}

A2,1A_{2,1} A2,2A_{2,2}

Output

Print the answer as an integer.


1 2
1 0
0 1
0

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


2 2
1 2
3 4
4

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


2 1
90 80
70 60
70

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