# https://github.com/touma6174/atcoder-note.git def yn(x: bool) -> None: print("Yes" if x else "No") def YN(x: bool) -> None: print("YES" if x else "NO") dr: list[int] = [-1, 0, 0, 1]; dc: list[int] = [0, -1, 1, 0] dr8: list[int] = [-1, -1, -1, 0, 0, 1, 1, 1]; dc8: list[int] = [-1, 0, 1, -1, 1, -1, 0, 1] N = int(input()) dp = [0] * (N+2) dp[0] = 1 for i in range(N): dp[i+1] += dp[i] dp[i+2] += dp[i] print(dp[-2])