def solve(N): th = (N+1)//3 if N%3!=2: A = list(range(3,3*N+1,3)) B = [] for i,a in enumerate(A): B.append(a+(-2 if i