#include <bits/stdc++.h>
using namespace std;
long long c[110], k;
int n, a[110];
int main() {
  c[0] = c[1] = 1LL;
  for (int i = 2; i < 100; i++) c[i] = c[i - 1] + c[i - 2];
  scanf("%d%I64d", &n, &k);
  for (int i = 1; i <= n;) {
    if (k > c[n - i]) {
      k -= c[n - i];
      a[i] = i + 1;
      a[i + 1] = i;
      i += 2;
    } else {
      a[i] = i;
      i++;
    }
  }
  for (int i = 1; i <= n; i++) cout << a[i] << " ";
  cout << endl;
  return 0;
}
