void main(){ import std.stdio, std.string, std.conv, std.algorithm; int n, wmax; rd(n, wmax); auto w=new int[](n); foreach(i; 0..n) rd(w[i]); int mx=0; foreach(bit; 0..(1<