Problem: An exam for n students will take place in a long and narrow room, so the students will sit in a line in some order. The teacher suspects that students with adjacent numbers (i and i + 1) always studied side by side and became friends and if they take an exam sitting next to each other, they will help each other for sure.

Your task is to choose the maximum number of students and make such an arrangement of students in the room that no two students with adjacent numbers sit side by side.

Input

A single line contains integer n (1 ≤ n ≤ 5000) — the number of students at an exam.

Output

In the first line print integer k — the maximum number of students who can be seated so that no two students with adjacent numbers sit next to each other.

In the second line print k distinct integers a1, a2, ..., ak (1 ≤ ai ≤ n), where ai is the number of the student on the i-th position. The students on adjacent positions mustn't have adjacent numbers. Formally, the following should be true: |ai - ai + 1| ≠ 1 for all i from 1 to k - 1.

If there are several possible answers, output any of them.

Examples

Input

6

Output

6
1 5 3 6 2 4

Input

3


Output

2
1 3

Solution (in JAVA):

Solution:
import java.util.*;
import java.io.*;


public class A implements Runnable {
		
	public void solve() throws IOException {
		int N = nextInt();
                if(N <= 2){
                    out.println(1);
                    out.println(1);
                }
                else if(N <= 3){
                    out.println(2);
                    out.println(1+ " " + 3);
                }
                else if(N <= 4){
                    out.println(4);
                    out.println("2 4 1 3");
                }
                else{
                    out.println(N);
                    
                    int mid = (N + 1)/ 2;
                    ArrayList<Integer> orig = new ArrayList<Integer>();
                    for(int i = 1; i <= N; i++) if(i != mid) orig.add(i);
                    ArrayList<Integer> l = new ArrayList<Integer>();
                    ArrayList<Integer> r = new ArrayList<Integer>();
                    int at = 0;
                    while(at < N-1){
                        l.add(orig.get(at++));
                        if(at < N-1){
                            r.add(orig.get(at++));
                        }
                    }
                    
                    for(int i = 0; i < l.size(); i++){
                        out.print(l.get(i) + " ");
                    }
                    for(int i = 0; i < r.size(); i++){
                        out.print(r.get(i) + " ");
                    }
                    out.println(mid);
                }
	}

	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	//-----------------------------------------------------------
	public static void main(String[] args) {
		new A().run();
	}

        public void debug(Object... arr){
            System.out.println(Arrays.deepToString(arr));
        }

        public void print1Int(int[] a){
                for(int i = 0; i < a.length; i++)
                        System.out.print(a[i] + " ");
                System.out.println();
        }
        
        public void print2Int(int[][] a){
                for(int i = 0; i < a.length; i++){
                        for(int j = 0; j < a[0].length; j++){
                                System.out.print(a[i][j] + " ");
                        }
                        System.out.println();
                }
        }
        
	public void run() {
		try {
			in = new BufferedReader(new InputStreamReader(System.in));
                        out = new PrintWriter(System.out);
			tok = null;
			solve();
			in.close();
                        out.close();
		} catch (IOException e) {
			System.exit(0);
		}
	}

	public String nextToken() throws IOException {
		while (tok == null || !tok.hasMoreTokens()) {
			tok = new StringTokenizer(in.readLine());
		}
		return tok.nextToken();
	}

	public int nextInt() throws IOException {
		return Integer.parseInt(nextToken());
	}

	public long nextLong() throws IOException {
		return Long.parseLong(nextToken());
	}

	public double nextDouble() throws IOException {
		return Double.parseDouble(nextToken());
	}
        PrintWriter out;
	BufferedReader in;
	StringTokenizer tok;
}