def main(): N = int(input()) nums = [int(i) for i in input().split()] sorted_nums = sorted(nums) #print(sorted_nums) print(get_new_num_count(sorted_nums)) def get_new_num_count(sorted_list): ans = 0 for num in sorted_list: count = sorted_list.count(num) if count == 1: ans += 1 else: return ans return ans if __name__ == '__main__': main()