#include <bits/stdc++.h>
using namespace std;
int n;
int ans[51];
long long k;
long long calc[51];
int main(void) {
  scanf("%d%lld", &n, &k);
  calc[0] = 1;
  calc[1] = 1;
  for (int i = 2; i <= n; ++i) calc[i] = calc[i - 1] + calc[i - 2];
  for (int t = 0; t < n; ++t) {
    if (t == n - 1 || calc[n - t - 1] >= k)
      ans[t] = t;
    else {
      k -= calc[n - t - 1];
      ans[t] = t + 1;
      ans[t + 1] = t;
      ++t;
    }
  }
  for (int i = 0; i < n; ++i) printf("%d ", ans[i] + 1);
  printf("\n");
  return 0;
}
