#include <bits/stdc++.h>
using namespace std;
using ld = long double;
void run();
signed main() {
  ios::sync_with_stdio(0);
  cin.tie();
  cout << fixed << setprecision(13);
  run();
}
void print(vector<long long> a) {
  for (long long i : a) {
    cout << i << " ";
  }
  cout << endl;
}
void run() {
  long long n, k;
  cin >> n >> k;
  vector<long long> cnt = {1, 1, 2};
  for (long long i = 3; i <= n; ++i) {
    cnt.push_back(cnt.back() + cnt[cnt.size() - 2]);
  }
  --k;
  vector<long long> ans;
  for (long long i = 1; i <= n; ++i) {
    if (cnt[n - i] <= k) {
      k -= cnt[n - i];
      ans.push_back(i + 1);
      ans.push_back(i);
      ++i;
    } else {
      ans.push_back(i);
    }
  }
  for (long long i : ans) {
    cout << i << " ";
  }
}
