from math import comb N = int(input()) a = N % 2 ans = 0 for i in range(N // 2 + 1): n1 = a + 2 * i n2 = (N - n1) // 2 ans += comb(n1 + n2, n1) print(ans)