using System; using System.Collections.Generic; using System.IO; using System.Linq; class Solution { static void Main(String[] args) { int n = Convert.ToInt32(Console.ReadLine()); string[] types_temp = Console.ReadLine().Split(' '); int[] types = Array.ConvertAll(types_temp,Int32.Parse); // your code goes here int max = 0; int maxIndex = 0; int[] tBirds = new int[6]; for(int j = 0; j<6; j++) { tBirds[j] = 0; } for(int i = 0; imax) { max = tBirds[k]; maxIndex = k; } } Console.WriteLine(maxIndex); } }