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

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.
Print the element at line and column .
Example 1