#include <bits/stdc++.h>
#define rep(i,a,b) for(int i=int(a);i<int(b);++i)
#define SIZE 200005
#define INF 1000000005LL
#define MOD 1000000007
using namespace std;
typedef long long int ll;
typedef pair <int,int> P;
vector<int> x = {1,-1,0,0};
vector<int> y = {0,0,-1,1};
int main(){
    set<ll> data;
    ll n;
    cin >> n;
    rep(i,0,n){
        ll a;
        cin >> a;
        if(data.count(a)){
            data.erase(a);
        }else{
            data.insert(a);
        }
    }
    cout<<data.size()<<endl;

    

  return 0;
}
#include <iostream>

using namespace std;

int main(){
	int n, m;
	cin >> n;
	cin >> m;
	int a[1000] = {};
	int b[1000] = {};
	int point[1000] = {};
	int selected;

	for(int i = 0; i < n; i++){
		cin >> a[i];
	}
	for(int i = 0; i < m; i++){
		cin >> b[i];
	}

	for(int i = 0; i < m; i++){
		for(int j = 0; j < n; j++){
			if(a[j] <= b[i]){
				point[j]++;
				break;
			}
		}
	}

	selected = 0;
	for(int i = 1; i < n; i++){
		
		if(point[selected] < point[i]){
			selected = i;
		}
	}

	cout << selected + 1 << endl;
	return 0;
}