#include <bits/stdc++.h>
using namespace std;
int n;
long long k;
long long p[60];
int a[55];
int main() {
  cin >> n >> k;
  p[0] = 1;
  p[1] = 1;
  int u = 1;
  for (int i = 2; i < 60; i++) p[i] = p[i - 1] + p[i - 2];
  int v = 1;
  a[n] = n;
  while (u <= n) {
    int i = 1;
    while (k > p[n - u - i + 1]) {
      k -= p[n - u - i + 1];
      i++;
    }
    v = u;
    for (int j = i; j > 0; j--) {
      a[u] = v + j - 1;
      u++;
    }
  }
  for (int i = 1; i <= n; i++) cout << a[i] << " ";
  return 0;
}
