#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  cin.tie(0);
  cin.sync_with_stdio(0);
  int n;
  ll k;
  cin >> n >> k;
  vector<int> a(n);
  iota(a.begin(), a.end(), 1);
  k--;
  if (k <= 3) {
    if (k == 1) swap(a[n - 1], a[n - 2]);
    if (k == 2) swap(a[n - 2], a[n - 3]);
  } else {
    vector<ll> b(n + 1);
    b[n - 2] = 1;
    b[n - 3] = 2;
    for (int i = n - 4; i >= 0; --i) b[i] = b[i + 1] + b[i + 2];
    while (k) {
      int i = 0;
      while (b[i] > k) i++;
      k -= b[i];
      swap(a[i], a[i + 1]);
    }
  }
  for (auto x : a) cout << x << " ";
}
