cat<<EOF>Source.cpp

extern "C"{
int printf (const char *__restrict __format, ...);
int scanf (const char *__restrict __format, ...) ;
}

int a[200001],b[200001];
int c[200001];
int main(){
	int n;scanf("%d",&n);
	for(int i=0;i<n;i++)scanf("%d",&a[i]);
	for(int i=0;i<n;i++)scanf("%d",&b[i]);
	int ans=0;
	#pragma omp parallel for
	for(int i=0;i<n;i++){
		#pragma omp parallel for
		for(int j=0;j<n;j++){
			ans^=a[i]+b[j];
		}
	}
	printf("%d\n",ans);
}
EOF
g++ -Ofast Source.cpp -o Source -fopenmp -std=c++11
./Source