N = int(input()) dp = [1]*N for i in range(N-2): dp[i+2] = dp[i+1] +dp[i] print(dp[N-1])