#include <bits/stdc++.h>
using namespace std;
int n;
long long dp[57], k;
int num[57];
void init() {
  dp[0] = dp[1] = 1;
  for (int i = 2; i < 57; i++) dp[i] = dp[i - 1] + dp[i - 2];
}
int main() {
  init();
  while (~scanf("%d%I64d", &n, &k)) {
    for (int i = 1; i <= n; i++) {
      if (k > dp[n - i]) {
        k -= dp[n - i];
        num[i] = i + 1;
        num[i + 1] = i;
        i++;
      } else
        num[i] = i;
    }
    for (int i = 1; i <= n; i++) printf("%d ", num[i]);
  }
}
