n,m,k=map(int,input().split()) a=list(map(int,input().split())) b=list(map(int,input().split())) assert(not(n!=len(a))) assert(not(m!=len(b))) assert(not(1<=n<=2*10**5)) assert(not(1<=m<=2*10**5)) assert(not(0<=k<1024)) for i in a: assert(not(0<=i<1024)) for j in b: assert(not(0<=j<1024))