#include<iostream>
using namespace std;
int n;
int ans;
int f(int k)
{
if(k == n) ans ++;
else if (k < n) //DFS(画图)
{
f(k + 1);
f(k + 2);
}
}
int main()
{
cin >> n;
f(0);
cout << ans;
return 0;
}