#include #define M 5000005 typedef long long ll; using namespace std; bool f2; char IO; int rd(){ int num=0;bool f=0; while(IO=getchar(),IO<48||IO>57)if(IO=='-')f=1; do num=(num<<1)+(num<<3)+(IO^48); while(IO=getchar(),IO>=48&&IO<=57); return f?-num:num; } int n,L[M],R[M]; bool done[M]; bool f1; int main(){ // cout<<1.0*(&f1-&f2)/1024.0/1024.0<