Snake#2667

Snake

1 second
128 megabytes
Very easy

Write a program that prints the integer located at line and column of an n \times m matrix that is filled like a snake:

prb2667.gif

Input

Given the integers , , , (1 \le x \le n \le 50, 1 \le y \le m \le 50). Here, is the number of matrix lines, is the number of matrix columns, and and are the numbers of the row and column of the element to print.

Output

Print the element at line and column .

Examples

Example 1

Loading
Loading