#include using namespace std; typedef long long ll; #define pb push_back #define st first #define nd second const int N = 1000007; map M; ll tab[N]; vector v; queue > q; int main () { ios_base::sync_with_stdio(false); cin.tie(0); ll n, a=-1, b=0; M[0]=1; cin>>n; for(int i=0; i>tab[i]; } sort(tab, tab+n); for(int i=0; i0) q.push({u.st+a, u.nd}); } while(!q.empty()) M[q.front().st]+=q.front().nd, q.pop(); v.pb(a); } b++; } cout<