import java.io.*; import java.util.*; public class abs{ public static void main(String[] args) { int min; Scanner in = new Scanner(System.in); int n = in.nextInt(); int[] types = new int[n]; int[] b= new int[n]; for(int i=0;i < n;i++) { types[i]=in.nextInt(); } for (int i = 0;i