import java.util.*; public class _27172 { static int MAX_N = 1000001; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = Integer.parseInt(sc.nextLine()); int[] nums = Arrays.stream(sc.nextLine().split(" ")) .mapToInt(Integer::parseInt) .toArray(); sc.close(); int[] scores = new int[MAX_N]; boolean[] cards = new boolean[MAX_N]; for (int n : nums) { cards[n] = true; } for(int i=0; i