c++

hello everyone! i would be very greatful if someone could help me.

my problem goes here...

Area of the room
Your task is to write a program that will find the area of room in a given square maze.

Note. Use recursion for solving this problem.

Input:
First line contains only one number N (3 <= N <= 10).The number that describes the size of the square maze.
On the next N lines maze itself is inputed ('.' - empty cell,'*' - wall).
And the last line contains two numbers - the row and column of the cell in the room those area you need to find.It is guaranteed that given cell is empty and that the maze is surrounded by walls on all sides.


Output:
Output only one number - total amount of empty cells in the selected room.


Samples:






Input


5
*****
**..*
*.*.*
*..**
*****
2 4
Output 3
Topic archived. No new replies allowed.