import java.util.*; public class migration { public static void main(String[]args){ Scanner s=new Scanner(System.in); int num=Integer.parseInt(s.nextLine()); String[] strr=s.nextLine().split(" "); int[] intt=new int[num]; for(int i=0;i