def rabit(n): if n == 1: return 2 elif n == 2: return 3 return rabit(n - 1) + rabit(n - 2) if __name__ == '__main__': n = int(input()) print(rabit(n))