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