import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = Integer.valueOf(scan.nextLine().trim());
        System.out.println(process(n));
    }
    public static int process(int n) {
        if (n == 1 || n == 2) {
            return 1;
        }
        return process(n - 1) + process(n - 2);
    }
}