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