ll@N;VVLL a(3,VLL(3,N/6*2));REP(n,N%6)rep(i,3)(n<3?a[i][n]:a[n-3][i])++;wt(a(3,3));