#include <bits/stdc++.h>
using namespace std;
long double dp[55][2];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  dp[0][0] = 1.0;
  dp[0][1] = 1.0;
  dp[1][0] = 1.0;
  dp[1][0] = 1.0;
  dp[2][0] = 1.0;
  dp[2][1] = 1.0;
  for (int i = 3; i <= 50; ++i) {
    dp[i][0] = (dp[i - 1][0] + dp[i - 1][1]);
    dp[i][1] = (dp[i - 2][0] + dp[i - 2][1]);
  }
  long double rem = 0;
  long long n;
  cin >> n;
  long double k;
  cin >> k;
  rem = k;
  for (int i = 1; i <= n; ++i) {
    if (rem > dp[n - i + 1][0]) {
      cout << i + 1 << " " << i << " ";
      rem -= dp[n - i + 1][0];
      i++;
    } else {
      cout << i << " ";
    }
  }
  return 0;
}
