#include using namespace std; int main(){ cin.tie(0),ios::sync_with_stdio(false); int n,x; cin>>n>>x; unordered_mapm; for(int i=0;i>a; ++m[a]; } int64_t ans=0; for(auto&&i:m){ int a=i.first,b=i.second,xorr=a^x; int64_t tmp=1L*m[xorr]*b; if(a==xorr)ans+=tmp/2; else ans+=tmp; } cout<