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

Задача 38638. Room area


It is required to calculate the area of ​​a room in a square maze.

Input
The first line of  enters the number N – maze size (3 <= N <= 10). The following N lines contain a maze (‘.’ – empty cell, ‘*’ – wall). And finally, the last line contains  two numbers – the number of the row and column of the cell located in the room whose area is to be calculated. It is guaranteed that this cell is empty and that the labyrinth is surrounded by walls on all sides.

Imprint
It is required to print a single number – the number of empty cells in this room.

 
Examples
# Input Output
1
5
*****
**..*
*.*.*
*..**
*****
24
3