/******************************************************************************

Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, OCaml, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debug online from anywhere in world.

*******************************************************************************/
#include <bits/stdc++.h>
using namespace std;

int main()
{
    int k=5;
    vector<int>a={5, 6, 7, 8, 9};
    int n=a.size();
    map<int,int>mp;
    mp[0]=1;
    int sum=0;
    //vector<int>p(n,0);
    int count=0;
    for(int i=0;i<n;i++){
        sum=sum^a[i];
        if(mp.find(sum^k)!=mp.end()){
            count+=mp[sum^k];
        }
        mp[sum]++;
    }
    
    cout<<count<<endl;

    return 0;
}