#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:102400000,102400000")
using namespace std;
long long f[100];
int main() {
  f[0] = f[1] = 1;
  for (int i = 2; i <= 55; i++) {
    f[i] = f[i - 1] + f[i - 2];
  }
  long long n, m;
  cin >> n >> m;
  int ans[100];
  for (int i = 1; i <= n; i++) {
    if (m > f[n - i]) {
      m -= f[n - i];
      ans[i + 1] = i;
      ans[i] = i + 1;
      i++;
    } else
      ans[i] = i;
  }
  for (int i = 1; i <= n; i++) {
    cout << ans[i] << " ";
  }
  return 0;
}
