s=int(input())
dp=[1,1]+100*[0]
for i in range(2,s+1):
    dp[i]=dp[i-1]+dp[i-2]
print(dp[s])

线性dp秒了