#include <bits/stdc++.h>
using namespace std;
long long dp[55];
int main() {
  dp[0] = 1;
  dp[1] = 1;
  int n;
  long long k;
  cin >> n >> k;
  for (int i = 2; i <= 50; i++) {
    dp[i] = dp[i - 1] + dp[i - 2];
    if (dp[i] > k) dp[i] = k + 1;
  }
  int a[55], pt = 1;
  while (pt <= n) {
    if (k <= dp[n - pt]) {
      a[pt] = pt;
      pt++;
    } else {
      k -= dp[n - pt];
      a[pt] = pt + 1;
      a[pt + 1] = pt;
      pt += 2;
    }
  }
  for (int i = 1; i <= n; i++) cout << a[i] << " ";
  cout << endl;
}
