#include <bits/stdc++.h>
using namespace std;
int n;
long long k;
long long fib[100];
int main() {
  ios::sync_with_stdio(false);
  fib[0] = fib[1] = 1;
  int i = 1;
  while (fib[i] < 1e18) {
    fib[i + 1] = fib[i] + fib[i - 1];
    i++;
  }
  cin >> n >> k;
  i = 1;
  while (i <= n) {
    if (k > fib[n - i]) {
      if (i < n) cout << i + 1 << " ";
      cout << i << " ";
      k -= fib[n - i];
      i += 2;
    } else {
      cout << i << " ";
      i++;
    }
  }
  return 0;
}
