Slava plays his favorite game "Peace Lightning". Now he is flying a bomber on a very specific map.

Formally, map is a checkered field of size 1 × n, the cells of which are numbered from 1 to n, in each cell there can be one or several tanks. Slava doesn't know the number of tanks and their positions, because he flies very high, but he can drop a bomb in any cell. All tanks in this cell will be damaged.

If a tank takes damage for the first time, it instantly moves to one of the neighboring cells (a tank in the cell n can only move to the cell n - 1, a tank in the cell 1 can only move to the cell 2). If a tank takes damage for the second time, it's counted as destroyed and never moves again. The tanks move only when they are damaged for the first time, they do not move by themselves.

Help Slava to destroy all tanks using as few bombs as possible.


-----Input-----

The first line contains a single integer n (2 ≤ n ≤ 100 000) — the size of the map.


-----Output-----

In the first line print m — the minimum number of bombs Slava needs to destroy all tanks.

In the second line print m integers k_1, k_2, ..., k_{m}. The number k_{i} means that the i-th bomb should be dropped at the cell k_{i}.

If there are multiple answers, you can print any of them.


-----Examples-----
Input
2

Output
3
2 1 2 
Input
3

Output
4
2 1 3 2

Difficulty: interview

Starter code:

Solutions:
s=int(input())
i=2
print(s//2+s-s//2+s//2)
while(i<=s):
    print(i, end= ' ')
    i+=2
i=1
while(i<=s):
    print(i, end= ' ')
    i+=2
i=2
while(i<=s):
    print(i, end= ' ')
    i+=2

import math
import re
import os
import string
import sys


def ria():
    return [int(i) for i in input().split()]


def ri():
    return int(input())


def rfa():
    return [float(i) for i in input().split()]


eps = 1e-9


def is_equal(a, b):
    return abs(a - b) <= eps


def distance(p0, p1):
    return math.sqrt((p0[0] - p1[0]) ** 2 + (p0[1] - p1[1]) ** 2)


n = ri()
ar = []
for i in range(1, n + 1):
    if i % 2 == 0:
        ar.append(i)

for i in range(1, n + 1):
    if i % 2 == 1:
        ar.append(i)

for i in range(1, n + 1):
    if i % 2 == 0:
        ar.append(i)
print(len(ar))
for i in ar:
    print(i,end=' ')

n = int(input())

o = n // 2 + n % 2
e = n // 2

kk = [0] * (e + e + o)
# print(kk)

r = 0
for i in range(e):
    kk[r] = 2 + i * 2
    r += 1

for i in range(o):
    kk[r] = 1 + i * 2
    r += 1

for i in range(e):
    kk[r] = 2 + i * 2
    r += 1


print(len(kk))
print(' '.join(map(str, kk)))


n=int(input())
print(n+n//2)
for i in range (2,n+1,2):
    print(i,end=" ")
for i in range(1, n + 1,2):
    print(i,end=" ")
for i in range (2,n+1,2):
    print(i,end=" ")

def reader(contest):    
    inp = input
    if not contest:
        fin = open("in", "r")
        inp = lambda: fin.readline()[:-1]
    read = lambda: tuple(map(int, inp().split()))
    return inp, read
    
inp, read = reader(True)

n = read()[0]

l1, l2 = [], []

for i in range(1, n, 2):
    l1 += [i + 1]
for i in range(0, n, 2):
    l2 += [i + 1]
for i in range(1, n, 2):
    l1 += [i + 1]

l1ld2 = len(l1) // 2
print(len(l1) + len(l2))
print(*(l1[:l1ld2] + l2 + l1[l1ld2:]))


n = int(input())
if n == 2:
    print(3)
    print(2, 1, 2)
else:
    print(n + n // 2)
    for i in range(2, n + 1, 2):
        print(i, end= ' ')
    for i in range(1, n + 1, 2):
        print(i, end= ' ')
    for i in range(2, n + 1, 2):
        print(i, end= ' ')
    


n = int(input())

if n % 2 == 1:
    print(n // 2 * 3 + 1)
else:
    print(n // 2 * 3)

print(*range(2, n + 1, 2), end=' ')
print(*range(1, n + 1, 2), end=' ')
print(*range(2, n + 1, 2), end=' ')


import math;
n = int(input());

m = n + math.floor(n/2);

print(m);
for i in range(2, n+1, 2):
    print(i, end = " ");
for i in range(1, n+1, 2):
    print(i, end = " ");
for i in range(2, n+1, 2):
    print(i, end = " ");


n = int(input())
m = n + int(n/2)
print(m)
out = ''
out1 =''
j = 1
for i in range(2,n+1,2):
	out += str(i) + ' '
	out1 += str(j) + ' '
	j +=2
if n%2 == 1:
	out1+=str(j) +' '
print(out+out1+out)

'''input
4
'''


from math import sqrt

def list_input():
    return list(map(int,input().split()))
def map_input():
    return map(int,input().split())
def map_string():
    return input().split()
    
n = int(input())
a = []
for i in range(2,n+1,2): a.append(i)
for i in range(1,n+1,2): a.append(i)
for i in range(2,n+1,2): a.append(i)

print(len(a))
for i in a: print(i,end=' ')



n = int(input())
print(n // 2 + n)
for i in range(1, n, 2):
    print(i + 1, end=' ')

for i in range(0, n, 2):
    print(i + 1, end=' ')

for i in range(1, n, 2):
    print(i + 1, end=' ')


n = int(input())
print(n + n // 2)

k = 1 - (n % 2)
rs = []
for i in range(1, n + 1):
    if i % 2 == k:
        rs.append(i)
for i in range(1, n + 1):
    if i % 2 != k:
        rs.append(i)
for i in range(1, n + 1):
    if i % 2 == k:
        rs.append(i)
print(' '.join(list(map(str, rs))))


n=int(input())
print(n+n//2)
for i in range(2,n+1,2):
    print(i,end=' ')
for i in range(1,n+1,2):
    print(i,end=' ')
for i in range(2,n+1,2):
    print(i,end=' ')


n = int(input())
outstr = ""
if n % 2 == 0:
    print(n//2*3)
    phrasea = ""
    phraseb = ""
    for i in range(1,n//2+1):
        phrasea += "{} ".format(2*i)
        phraseb += "{} ".format(2*i-1)

    outstr = phrasea + phraseb + phrasea
    outstr = outstr[:-1]
    print(outstr)
else:
    print((3*n-1)//2)
    phrasea = ""
    phraseb = ""
    for i in range(1,(n+1)//2):
        phrasea += "{} ".format(2*i)
        phraseb += "{} ".format(2*i-1)
    phraseb += "{} ".format(n)

    outstr = phrasea + phraseb + phrasea
    outstr = outstr[:-1]
    print(outstr)


#python3
# utf-8

n = int(input())

list_range = []
list_range += list(range(2, n + 1, 2))
list_range += list(range(1, n + 1, 2))
list_range += reversed(list(range(2, n + 1, 2)))
print(len(list_range))
print(*list_range)


n = int(input())

ans = []
for i in range(n):
    if i % 2 == 1:
        ans.append(i)
for i in range(n):
    if i % 2 == 0:
        ans.append(i)
for i in range(n):
    if i % 2 == 1:
        ans.append(i)
print(len(ans))
print(' '.join([str(i+1) for i in ans]))

n = int(input())

A = []
B = []
for i in range(1, n + 1, 2):
    A.append(i)
for i in range(2, n + 1, 2):
    B.append(i)
if(len(A) < len(B)):
    A = A + B + A
else:
    A = B + A + B
print(len(A))
for i in A:
    print(i, end=' ')

n = int(input().strip())
tmp =[]
i=2
while(i<=n):
  tmp.append(i)
  i = i+2
i =1
while(i<=n):
  tmp.append(i)
  i = i+2
i=2
while(i<=n):
  tmp.append(i)
  i = i+2
print(len(tmp))
print(' '.join(map(str,tmp)))

n = int(input())
if n==2:
    print('3', '2 1 2', sep='\n')
elif n==3:
    print('4', '2 1 3 2', sep='\n')
else:
    b = []
    for i in range(2, n+1, 2):
        b.append(i)
    for i in range(1, n+1, 2):
        b.append(i)
    for i in range(2, n+1, 2):
        b.append(i)
    print(len(b))
    print(*b)

M = int(input())

if M % 2 == 0:
    ans = M // 2 * 3
else:
    ans = M // 2 * 3 + 1

print(ans)

rua = 2
while rua <= M:
    print(rua, end=' ')
    rua += 2

rua = 1
while rua <= M:
    print(rua, end=' ')
    rua += 2

rua = 2
while rua <= M:
    print(rua, end=' ')
    rua += 2


n = int(input())
if n % 2 == 0:
    print(int(n * 1.5))
    print(*list(range(1, n + 1, 2)), end = ' ')
    print(*list(range(2, n + 1, 2)), end = ' ')
    print(*list(range(1, n + 1, 2)), end = ' ')
else:
    print(3 * (n // 2) + 1)
    print(*list(range(2, n + 1, 2)), end = ' ')
    print(*list(range(1, n + 1, 2)), end = ' ')
    print(*list(range(2, n + 1, 2)), end = ' ')

n = int(input())
print(str(n + n // 2))
for i in range(n + 1):
    if i == 0 or i % 2 == 1:
        continue
    print(str(i) + " ", end="")

for i in range(n + 1):
    if i == 0 or i % 2 == 0:
        continue
    print(str(i) + " ", end="")


for i in range(n + 1):
    if i == 0 or i % 2 == 1:
        continue
    print(str(i) + " ", end ="")


from sys import stdin, stdout

n = int(stdin.readline().rstrip())

if n%2==0:
    print(3*(n//2))
else:
    print(3*(n-1)//2+1)

bombOrder=[]
i=2
while i<=n:
    bombOrder.append(str(i))
    i+=2
i=1
while i<=n:
    bombOrder.append(str(i))
    i+=2
i=2
while i<=n:
    bombOrder.append(str(i))
    i+=2
    
print(' '.join(bombOrder))


n=int(input())
n+=1
a=[]
for i in range(2,n,2):
    a.append(i)
a.append(1)
for j in range(2,n,2):
    if j+1<n:
        a.append(j+1)
    a.append(j)
print(len(a))
for x in a:
    print(x,end=' ')