Олимпиадный тренинг

Задача 27168. Zlatopolsky 12.2a


Input
The first line contains the number of rows (1<=N<=20) and the number of columns (M 1<=M<=20) of the two-dimensional array separated by a space.
Next comes N lines with M elements per line - the elements of a two-dimensional array. All elements of a two-dimensional array modulo does not exceed  50.

Imprint
Display the element located in the lower right corner.