In his Introduction to Customer Service culminating project, carminite plans to use a revolutionary technique called "Chunk Loading" where only items in a region around a point is shown on a screen. He talks of saving computing power and creating less volatile games with this idea and, because he's actually pretty dumb, asks you to implement this idea.
The input will consist of one line with integers
1 ≤ X, Y ≤ 20, the map dimensions.
Y rows will have a string of
X characters each.
The final row will have integers
B, the 1-indexed coordinates of the chosen point on the map, and an integer
0 ≤ R ≤ X, Y, the radius of the square of which chunks should be loaded (essentially a
2R+1 length square with (
B) at the center).
A visual representation of the loaded chunk region. Chunks outside the map are shown with character '.'.
2 2 2