#include #include using namespace std; using namespace atcoder; #define rep(i,n) for(int i=0;i<(int)(n);i++) template inline bool chmax(T&a,T b){if(a inline bool chmin(T&a,T b){if(a>b){a=b;return 1;}return 0;} using ll = long long; int n; int main () { cin.tie(0); ios::sync_with_stdio(false); cin >> n; vector a(n); rep(i,n) cin >> a[i]; sort(a.rbegin(), a.rend()); int k=0, ans=0; rep(i,20)for(int j=0; j<(1<