#include #include using namespace std; int N,X; mapmp; main() { cin>>N>>X; long ans=0; for(int i=0;i>A; ans+=mp[X^A]; mp[A]++; } cout<