#include #include using namespace std; int b[200005]; int bs[100005]; #define GETA 100000 int main(){ int N; cin>>N; for(int i=0;i>b[i+GETA],bs[i]=b[i+GETA]; sort(bs,bs+N); int i=N-1; int j=N-1; int c=0; while(1){ //cout<