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