#include using namespace std; template inline S min_L(S a,T b){ return a<=b?a:b; } template inline S max_L(S a,T b){ return a>=b?a:b; } inline void rd(int &x){ int k, m=0; x=0; for(;;){ k = getchar_unlocked(); if(k=='-'){ m=1; break; } if('0'<=k&&k<='9'){ x=k-'0'; break; } } for(;;){ k = getchar_unlocked(); if(k<'0'||k>'9'){ break; } x=x*10+k-'0'; } if(m){ x=-x; } } inline void wt_L(char a){ putchar_unlocked(a); } inline void wt_L(int x){ char f[10]; int m=0, s=0; if(x<0){ m=1; x=-x; } while(x){ f[s++]=x%10; x/=10; } if(!s){ f[s++]=0; } if(m){ putchar_unlocked('-'); } while(s--){ putchar_unlocked(f[s]+'0'); } } template inline S chmax(S &a, T b){ if(a?= s; // rep(i,24,N){ // s += A[i] - A[i-24]; // res >?= s; // } // // rep(Q){ // rd(T--,V); // A[T] = V; // x = max(0, T-24); // y = min(N-1, T+24); // // s = 0; // rep(i,x,x+24) s+= A[i]; // res >?= s; // rep(i,x+24,y+1){ // s += A[i] - A[i-24]; // res >?= s; // } // // wt(res); // } // }