#include using namespace std; int main() { int N,K,x; cin>>N>>K; int dp[200020]={}; dp[0]=1; while(cin>>x)for (int j = 200020-x-1; j >= 0; --j)if(dp[j]!=0)dp[j+x]=1; for(int i = K ; i >= 0 ; i--)if(dp[i]){ cout<