#include using namespace std; typedef long long ll; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b>N; ll sum=0; for(int i=0;i>x; for(int j=0;j<=200000;j++){ dp[t][j]+=dp[s][j]; dp[t][j+x]+=dp[s][j]; chmin(dp[t][j],2); chmin(dp[t][j+x],2); dp[s][j]=0; } sum+=x; } for(int j=1;j<=200000;j++){ if(dp[N&1][j]>=2){ if(j+j!=sum){ cout<