#include using namespace std; using ll = long long; using vll = vector; using vvll = vector; using vc = vector; using vvc = vector; using pll = pair; using stkll = vector; const ll INF = 1LL << 60; const ll MOD = 1e9 + 7; #define rep(i, n) for (ll i = 0; i < (n); i++) template inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template inline void chmax(T1 &a,T2 b){if(a 0) { if(n % 2 == 1) B = mul(B, A); A = mul(A, A); n /= 2; } return B; } int main() { cin.tie(0); ios::sync_with_stdio(false); cout << fixed << setprecision(20); cin >> N >> M; mat A(2, vll(2)); A[0][0] = 1; A[0][1] = 1; A[1][0] = 1; A[1][1] = 0; A = pow(A, N); cout << A[1][0] << endl; }