#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long fib[51];
  fib[0] = fib[1] = 1;
  for (int i = 2; i <= 50; i++) fib[i] = fib[i - 1] + fib[i - 2];
  long long n, k;
  cin >> n >> k;
  long long rem = k;
  long long idx = 1;
  while (idx <= n) {
    if (rem <= fib[n - idx]) {
      cout << idx << ' ';
      idx++;
    } else {
      cout << idx + 1 << ' ' << idx << ' ';
      rem -= fib[n - idx];
      idx += 2;
    }
  }
  return 0;
}
