#include <bits/stdc++.h>
using namespace std;
const long long MAX = 1e5 + 5;
const long long MOD = 1e9 + 7;
const long double EPS = 1e-10;
const long double PI = acos(-1.0);
const long long N = (1 << 20) + 5;
map<long long, long long> c[2];
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n;
  cin >> n;
  c[0][0] = 1;
  long long ans = 0, curr = 0, temp = 0;
  for (long long i = 1; i <= n; i += 1) {
    cin >> temp;
    curr ^= temp;
    ans += c[i % 2][curr];
    c[i % 2][curr]++;
  }
  cout << ans << endl;
  return 0;
}
