#include #define REP(i,n) for(int i=0;i>n; vector w(n); REP(i,n)cin>>w[i]; sort(ALL(w)); int m; cin>>m; vector b(m); REP(i,m)cin>>b[i]; sort(ALL(b)); int ans1=1,bot=w.back(),white=n-1,black=m-1; bool turn=true;//白が最下層 REP(j,n+m){ if(turn){ for(int i=black;i>=0;i--){ if(b[i]=0;i--){ if(w[i]=0;i--){ if(b[i]=0;i--){ if(w[i]