using System; using System.Collections.Generic; using System.Text; using System.Linq; class Program { public void Proc() { Reader.IsDebug = false; int itemCont = int.Parse(Reader.ReadLine()); long[] inpt = Reader.ReadLine().Split(' ').Select(a=>long.Parse(a)).ToArray(); long[] keys = inpt.Distinct().ToArray(); long target = keys.Where(a=>inpt.Count(b=>b==a) >= 2).Max(); bool isBegen = false; long[] ans = new long[inpt.Length]; for(int i=0; i