#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define BET(a,b,c) ((a)<=(b)&&(b)<(c)) #define FOR(i,n) for(int i=0,i##_end=(int(n));i VI; typedef vector VVI; #include int main() { int n; cin>>n; vector A(n); FOR(i,n){ scanf("%lld",&A[i]); } long long rank = 0; FOR(i,61){ int t = -1; for(int j=rank;j