#include <bits/stdc++.h>
using namespace std;
using namespace std;
long long v[1111111];
long long tmp[1111111];
bool vis[111111];
int main() {
  long long fib[66];
  fib[1] = 1;
  fib[2] = 2;
  for (long long i = 3; i <= 50; i++) {
    fib[i] = fib[i - 1] + fib[i - 2];
  }
  long long ans[66];
  long long tail = 0;
  long long n, k;
  cin >> n >> k;
  long long now = 1;
  while (k && now <= n) {
    if (k > fib[n - now]) {
      ans[tail++] = now + 1;
      ans[tail++] = now;
      k -= fib[n - now];
      now += 2;
    } else {
      ans[tail++] = now;
      now++;
    }
  }
  for (long long i = 0; i < tail; i++) {
    cout << ans[i] << " ";
  }
  cout << endl;
  return 0;
}
