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