#include <bits/stdc++.h>
using namespace std;
int main() {
  ios ::sync_with_stdio(false);
  cin.tie(0);
  long long n, k;
  cin >> n >> k;
  if (n == 1) {
    cout << "1" << endl;
    return 0;
  } else if (n == 2) {
    if (k == 1) {
      cout << "1 2" << endl;
      return 0;
    } else {
      cout << "2 1" << endl;
      return 0;
    }
  }
  int a[n];
  for (int i = 0; i < n; i++) {
    a[i] = i + 1;
  }
  long long b[n], c[n];
  b[n - 3] = b[n - 2] = b[n - 1] = 1;
  c[n - 1] = 1;
  c[n - 2] = 2;
  c[n - 3] = 3;
  for (int i = n - 4; i >= 0; i--) {
    b[i] = b[i + 1] + b[i + 2];
    c[i] = b[i] + c[i + 1];
  }
  while (k > 1) {
    int i = n - 1;
    while (k > c[i]) {
      i--;
    }
    iter_swap(a + i, a + i + 1);
    k -= c[i + 1];
  }
  for (int i = 0; i < n - 1; i++) {
    cout << a[i] << " ";
  }
  cout << a[n - 1] << endl;
}
