#include using namespace std; template void chmax(T &a,T b){ if(a>s; int ans=0; for(int i=0;i