#include <bits/stdc++.h>
using namespace std;
void FastIO() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
}
long long modpow(long long a, long long p, long long mod) {
  long long ret = 1;
  while (p) {
    if (p & 1) ret = (ret * a) % mod;
    a = (a * a) % mod;
    p /= 2;
  }
  return ret;
}
long long power(long long a, long long p) {
  long long ret = 1;
  while (p) {
    if (p & 1) ret = (ret * a);
    a = (a * a);
    p /= 2;
  }
  return ret;
}
long long fib[100];
void pre() {
  fib[0] = 1;
  fib[1] = 1;
  for (int i = 2; i < 52; i++) fib[i] = fib[i - 1] + fib[i - 2];
}
int main() {
  FastIO();
  pre();
  long long n, k;
  cin >> n >> k;
  vector<long long> ans;
  int i = 0;
  while (i < n) {
    if (k <= fib[n - 1 - i])
      ans.push_back(i + 1);
    else {
      ans.push_back(i + 2);
      ans.push_back(i + 1);
      k -= fib[n - 1 - i];
      i++;
    }
    i++;
  }
  for (int i = 0; i < n; i++) cout << ans[i] << " ";
  cout << '\n';
  return 0;
}
