#include <bits/stdc++.h>
using namespace std;
vector<long long> fib(55);
void fibonacci() {
  fib[0] = 1;
  fib[1] = 2;
  for (int i = 2; i < 55; i++) {
    fib[i] = fib[i - 1] + fib[i - 2];
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  fibonacci();
  int n, temp, i;
  long long k;
  cin >> n >> k;
  vector<int> V(n), Z(n - 1);
  for (i = 0; i < n; i++) {
    V[i] = i + 1;
  }
  k--;
  for (i = n - 2; i >= 0; i--) {
    if (k >= fib[i]) {
      k -= fib[i];
      Z[n - 2 - i] = 1;
    } else
      Z[n - 2 - i] = 0;
  }
  for (i = 0; i < n - 1; i++) {
    if (Z[i] == 1) {
      temp = V[i];
      V[i] = V[i + 1];
      V[i + 1] = temp;
    }
  }
  cout << V[0];
  for (i = 1; i < n; i++) {
    cout << " " << V[i];
  }
  cout << '\n';
}
