#include using namespace std; #define int long long signed main(){ int N; cin>>N; vector> dp(N+1,vector(70000)); dp[0][0] = 1; vector S(N); for(int i=0;i>S[i]; for(int i=0;i=0;i--)if(dp[N][i]){ cout<