#include <bits/stdc++.h>   using namespace std;   const long long N = 3e5 + 10, M = 2097152 + 10;   long long n, x, ans, ar[N], mark[M][2];   int32_t main() {     ios::sync_with_stdio(0);     cin.tie(0);     cin >> n;     for (long long i = 0; i < n; i++) cin >> ar[i];     mark[0][1]++;     for (long long i = 0; i < n; i++) {       x ^= ar[i];       mark[x][i & 1]++;     }     for (long long i = 0; i < M; i++) {       ans += (mark[i][0] * (mark[i][0] - 1)) / 2;       ans += (mark[i][1] * (mark[i][1] - 1)) / 2;     }     cout << ans;   }   