#include using namespace std; const int MAXN = 1<<17; int cnt[MAXN]; int main() { freopen ("xor.in", "r", stdin); freopen ("xor.out", "w", stdout); int n, k, x; long long sol = 0; cin>>n>>k; while (n--) { cin>>x; sol += cnt[x ^ k]; ++cnt[x]; } cout<