public static void Main()
int n, m, top = -1, bottom = 0, left = 51, right = -1;
var temp = Console.ReadLine().Split().Select(int.Parse).ToArray();
string[] arr = new string[n];
for (int i = 0; i < n; i++)
int starFirstInd = s.IndexOf('*');
int lastStarInd = s.LastIndexOf('*');
for (int i = top; i <= bottom; i++)
String ans = arr[i].Substring(left, right - left + 1);