#include <bits/stdc++.h>
using namespace std;
int n;
long long int k;
long long int dp[55];
int main() {
  scanf("%d", &n);
  scanf("%I64d", &k);
  dp[0] = 1;
  dp[1] = 1;
  for (int a = 2; a <= 50; a++) dp[a] = dp[a - 1] + dp[a - 2];
  for (int a = 1; a <= n; a++) {
    if (k <= dp[n - a])
      printf("%d", a);
    else {
      k -= dp[n - a];
      printf("%d %d", a + 1, a);
      a++;
    }
    if (a != n) printf(" ");
  }
  printf("\n");
  return 0;
}
