#include <bits/stdc++.h>
using namespace std;
int n;
int f(int x){
	if(x==1||x==2) return 1;
	else return f(x-1)+f(x-2);
}
int main(){
	cin>>n;
	cout<<f(n);
	return 0;
}
/**************************************************************
	Problem: 1238
	User: hongjiaming
	Language: C++
	Result: Accepted
	Time:13 ms
	Memory:2072 kb
****************************************************************/