#include using namespace std; using ll = long long; template using vec = vector; template using vvec = vector>; int main(){ cin.tie(0); ios::sync_with_stdio(false); int N; cin >> N; vec T(N); for(auto& x:T) cin >> x; set s; vec A = {0,2,4,5,7,9,11}; for(int d=0;d<12;d++){ bool valid = true; for(int i=0;i