#include<stdio.h>
int main()
{
int n = 0;
int m = 0;
int a = 0;
//输入n m
scanf_s("%d%d", &n, &m);
//存储数字
int arr[10][10] = { 0 };
for (int i = 1; i <= n; i++)
{
for (int j = 1; j <= m; j++)
{
scanf_s("%d", &arr[i][j]);
}
}
//输入x y
int x = 0;
int y = 0;
scanf_s("%d%d", &x, &y);
printf("%d", arr[x][y]);
return 0;
}