#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int n;
  cin >> n;
  long long int ans = 0;
  ans = 3 * (n / 2);
  if (n % 2 != 0) ans += 1;
  cout << ans << endl;
  for (int i = 2; i <= n; i += 2) cout << i << " ";
  for (int i = 1; i <= n; i += 2) cout << i << " ";
  for (int i = 2; i <= n; i += 2) cout << i << " ";
  return 0;
}
