#include <bits/stdc++.h>
using namespace std;
ifstream fin("a.in");
long long f[51];
int main() {
  int i, n;
  long long k;
  f[1] = 1;
  f[0] = 1;
  cin >> n;
  for (i = 2; i <= n; i++) {
    f[i] = f[i - 1] + f[i - 2];
  }
  cin >> k;
  for (i = 1; i <= n; i++) {
    if (f[n - i] >= k)
      cout << i << " ";
    else {
      k -= f[n - i];
      cout << i + 1 << " " << i << " ";
      i++;
    }
  }
}
