n,m,k = map(int,input().split()) a = list(map(int,input().split())) b = list(map(int,input().split())) mask=(1< 0: if(g&(1<