#Program to print nth Fibonacci number
n=int(input())
a,b,ct=1,1,0
while ct<n-2:
    temp=a+b
    a=b
    b=temp
    ct=ct+1
print (temp)
5
5