#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, k;
  cin >> n >> k;
  long long fib[58] = {0};
  fib[0] = 1;
  fib[1] = 1;
  fib[2] = 2;
  for (long long i = 3; i <= 57; ++i) fib[i] = fib[i - 1] + fib[i - 2];
  long long n0 = 1;
  while (n0 <= n) {
    if (k <= fib[n - n0]) {
      cout << n0 << " ";
      n0++;
    } else {
      k -= fib[n - n0];
      cout << n0 + 1 << " " << n0 << " ";
      n0 += 2;
    }
  }
  cout << endl;
  return 0;
}
