#include<bits/stdc++.h> using namespace std; int n; const int N = 4e6+5; int ans; int cal(int x){ int res=0; if(x%3==0) res+=1; if(x%9==0) res+=2; if(x%5==0) res+=4; if(x%11==0) res+=8; return res; } bool blood(int x,int y){ if(((x|y)==15)||((x|y)==13&&x&1&&y&1)) return...