import math N = int(input()) counttwo = N // 2 ans = 0 for i in range(counttwo + 1): ans += math.factorial(N-i) // (math.factorial(N - (i*2)) * math.factorial(i)) print(ans)