#include using namespace std; template inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template inline void chmax(T1 &a,T2 b){if(a>n; Int ans=0; for(Int x=0;x<=n;x++) for(Int y=0;y<=n;y++) if(0<=n-(x+y)) ans++; cout<