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