#define rep(i,n) for(int i=0;i<(int)(n);i++) #define ALL(v) v.begin(),v.end() typedef long long ll; #include #include using namespace std; using namespace atcoder; int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); int l,m,n; cin>>l>>m>>n; vector A(n+1),B(n+1); rep(i,l){ int a; cin>>a; A[a]=1; } rep(i,m){ int b; cin>>b; B[n+1-b]=1; } int q; cin>>q; vector C=convolution(A,B); for(int i=n+1;i<=n+q;i++) cout<