#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>n; for(Int a=1;a<=n;a++){ for(Int b=a;a+b<=n;b++){ Int c=n-(a+b); if(b<=c) cout<