快读
inline int read(){
int x = 0 , f = 1 ; char c = getchar() ;
while( c < '0' || c > '9' ) { if( c == '-' ) f = -1 ; c = getchar() ; }
while( c >= '0' && c <= '9' ) { x = x * 10 + c - '0' ; c = getchar() ; }
return x * f ;
} 快写
inline void write(int x){
int s[20],top = 0;if(x<0) {putchar('-');x = -x;}
while(x) {s[++top] = x%10;x/=10;};if(!top) s[++top] = 0;
while(top) putchar(s[top--]+'0');
}