dp = [0] * 55 dp[0] = 1 for i in range(50): dp[i + 1] += dp[i] dp[i + 2] += dp[i] print(dp[int(input())])