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