using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace yukicoderTest { class Program { static void Main(string[] args) { string input = Console.ReadLine(); int n = int.Parse(input); int[] cnt = new int[n]; for(int i=0;imax) { max = cnt[i]; ren = i; flg = true; } else if(cnt[i]==max) { flg = false; } } if (flg == true) { Console.WriteLine(ren+1); } else { Console.WriteLine("-1"); } } } }