from functools import reduce n = int(input()) count = n for i in range(1, n//2+1): count += reduce(lambda x,y: x*y, list(range(n-2*i-1, n-i))) / reduce(lambda x,y: x*y, list(range(1, i+2))) print(count)