#include using namespace std; int N,a[100000]; int f(int s,int l,int r){ if(s<0){ return 0; } int m=lower_bound(a+l,a+r,a[l]&-(1<>N; for(int i=0;cin>>a[i++];); sort(a,a+N); cout<