#include<bits/stdc++.h>
using namespace std;
int n,m,k,a[100001],b[100010]
int main() {
	freopen("road.in","r",stdin);
	freopen("road.out","w",stdout);
	cin>>n>>m>>k;
	for(int i=0;i<m;i++) cin>>a[i];
	for(int j=1;j<=l;j++) cin>>b[i];
	cout<<a[1]+a[2];

	    return 0;
}

