using System; namespace No._43 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string data; string[,] table = new string[n, n]; int[] win = new int[n]; int[] rank = new int[n]; for (int i = 0; i < n; i++) { data = Console.ReadLine(); for (int j = 0; j < n; j++) { table[i, j] = data[j].ToString(); } } for (int i = 0; i < n; i++) for (int j = 0; j < n; j++) if (table[i, j] == "o" || (i == 0 && table[i, j] == "-")) win[i]++; for (int i = 0; i < n; i++) for (int j = 0; j < n; j++) if (win[i] < win[j]) rank[i]++; Console.WriteLine(rank[0] + 1); } } }