#include<bits/stdc++.h>#define ri register int#define pii pair<int,int>#define fir first
#define sec second
using namespace std;
inline int read(){//快读int x = 0;
int f = 1;
char c = getchar();
while(c > '9' || c < '0'){
if(c == '-')f = -1;
c = getchar();
}
while(c >= '0' && c <= '9'){
x = (x << 3) + (x << 1) + c - 48;
c = getchar();
}
return x * f;
}
void out(int x){//快写if(x < 0){
putchar('-');
x = -x;
}
if(x > 9)out(x/10);
putchar(x % 10 + 48);
}
signed main(){
#ifndef ONLINE_JUDGEfreopen("text.txt","r",stdin);
#endifreturn 0;
}
struct Tree{//树状数组int val[SIZN];
int len;
inline int LOW_BIT(int x){
return x & (-x);
}
inline void ADD(int x,int k){
for(int i = x ; i <= len ; i += LOW_BIT(i))val[i] += k;
}
inline int QUETY(int x){
int ans = 0;
for(int i = x ; i ; i -= LOW_BIT(i))ans += val[i];
return ans;
}
}