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