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 CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int N = 1e1;
map<string, string> maap;
vector<int> circle;
bool vis[N];
int parent[N];
int chk[N];
int color[N];
int tim[2][N];
int dis[N];
int position[N];
vector<int> adj[N];
vector<int> adj1[N];
vector<int> graph[N];
bool has_cycle;
int maxdis, maxnode, Totnode, depth = 1;
bool ok;
queue<int> q;
stack<int> stk;
vector<int> solution;
int indegree[N];
int go[N];
int to[N];
map<int, int> mp1;
vector<pair<int, int>> vec;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int t;
  int cas = 0;
  int n, m, i, j, cnt1 = 0, cnt2 = 0, cnt = 0, even = 0, odd = 0, len, k, r, l,
                  z = 0, x = 0, y = 0, flag = 0, sum = 0;
  int a = 0, b = 0, c = 0, d = 0, ans = 0LL, rem, quot, zero = 0, fst = 0,
      null = 0, snd = 0, lst = 0, rone = 0, one = 0, pos = 0, neg = 0,
      mn = INT_MAX, mx = INT_MIN;
  char ch;
  int h1, h2, m1, m2, h;
  int velo1, velo2, ac1, ac2, time;
  int node, edge, u, v, cost;
  int best, worst;
  double nd, ad, bd, xd;
  string str, str1 = "", str2 = "", str3 = "", strstore1 = "", strstore2 = "";
  cin >> a;
  if (a == 1) {
    cout << 1 << endl << 1 << endl;
  } else if (a == 2) {
    cout << 1 << endl << 1 << endl;
  } else if (a == 3) {
    cout << 2 << endl << 3 << " " << 1 << endl;
  } else if (a == 4) {
    cout << 4 << endl << 3 << " " << 1 << " " << 4 << " " << 2 << endl;
  } else {
    if (a % 2) {
      cout << a << endl;
      for (int i = a; i >= 1; i -= 2) {
        cout << i << " ";
      }
      for (int i = a - 1; i >= 2; i -= 2) {
        cout << i << " ";
      }
      cout << endl;
    } else {
      cout << a << endl;
      for (int i = a; i >= 2; i -= 2) {
        cout << i << " ";
      }
      for (int i = a - 1; i >= 1; i -= 2) {
        cout << i << " ";
      }
      cout << endl;
    }
  }
  return 0;
}