#include #include #include #include using namespace std; int main(){ int L,M,N; cin >> L >> M >> N; int A[L],B[M]; for(int i=0;i>A[i]; sort(A,A+L); for(int i=0;i>B[i]; sort(B,B+M); priority_queue > pq; int nxtInd=0; for(int i=0;iA[nxtInd] ) nxtInd++; if( nxtInd>Q; for( int i = 0 ; i < Q; i++ ){ int ans=0; while( !pq.empty() ){ pair p=pq.top(); if( p.first+i!=0 ) break; pq.pop(); ans++; if( p.second+1 < L){ pq.push(make_pair( p.first+A[p.second]-A[p.second+1], p.second+1)); } } cout << ans << endl; } return 0; }