#import #define z s.erase(s.find(a[ #define u std:: long R,n,i,l,r,a[1<<20];main(){for(u cin>>n;u cin>>a[i++];);for(u multisets;l