#import using namespace std;main(){int L,M,Q;cin>>L>>M>>Q;bitset<1<<17>a,b;for(;cin>>Q,L?a[Q]=1,L--:M?b[Q]=1,M--:0;);for(;Q--;b<<=1)cout<<(a&b).count()<