Snake#140

Snake

1 second
128 megabytes
Very easy (≈850)

Write a program that prints an integer located at line x and column y of matrix n × m that is filled like a snake:

65bf5e5c4b017e5f0eb14eb5b10c45cdc243551f.gif

Input

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

Output

Print the element of line x and column y.

Examples

Example 1

Loading
Loading