#include
#include
using namespace std;
const int Max=1000;
const int Len=1000;
int a[Len];
int lowbit(int x){
return x&-x;
}
void updata(int x,int n){
while(n0){
summ+=a[x];
x-=lowbit(x);
}
return summ;
}
int main(){
}