import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
f(a);
System.out.println(count);
}
public static int count;
private static void f(int a) {
// TODO Auto-generated method stub
if (a == 0) {
count++;
return;
}
f(a-1);
if(a>1){
f(a-2);
}
}
}