#include using namespace std; #define REP(i,n) for(int i=0; i<(n); i++) #define REP2(i,x,n) for(int i=x; i<(n); i++) #define ALL(n) begin(n),end(n) struct cww{cww(){ios::sync_with_stdio(false);cin.tie(0);}}star; const long long INF = numeric_limits::max(); bool judge(int d,int a){ if (a==(d)%12|| a==(d+2)%12 || a==(d+4)%12 || a==(d+5)%12 || a==(d+7)%12 || a==(d+9)%12 || a==(d+11)%12){ return true; } else{ return false; } } int n; int t[12]; int main() { cin.tie(0); ios::sync_with_stdio(false); cin>>n; for(int i =0; i>v; t[i]=v; } vector cnt; cnt.resize(0); for(int i=0; i<12; i++){ int ans=0; for (int j=0; j1){ cout<<"-1"<