#include using namespace std; using ll = long long; template using vec = vector; template using vvec = vector>; int main(){ cin.tie(0); ios::sync_with_stdio(false); int N,K; cin >> N >> K; vec A(N); for(auto& x:A) cin >> x; sort(A.begin(),A.end()); vec dp(1<>i&1)){ dp[S^(1<