#include <bits/stdc++.h>
using namespace std;
int main() {
  long long f[55];
  f[1] = 1;
  f[2] = 2;
  for (int i = 3; i <= 50; i++) f[i] = f[i - 1] + f[i - 2];
  ios_base::sync_with_stdio(false);
  long long n, k, i, a[55];
  cin >> n >> k;
  for (i = 1; i <= n; i++) a[i] = i;
  for (i = 1; i <= n; i++) {
    if (k == 1) break;
    if (k > f[n - i]) {
      a[i] = i + 1;
      a[i + 1] = i;
      k -= f[n - i];
      i++;
    } else
      continue;
  }
  for (i = 1; i <= n; i++) cout << a[i] << " ";
  return 0;
}
