#include using namespace std; #define rep(i,a,b) for(int i=a;i> N; rep(i, 0, N) cin >> A[i]; dp[0][0] = 1; rep(i, 0, N) rep(j, 0, 2 << 14) if(dp[i][j]){ dp[i + 1][j] = true; dp[i + 1][j ^ A[i]] = true; } int ans = 0; rep(j, 0, 2 << 14) if (dp[N][j]) ans++; cout << ans << endl; }