import sys sys.setrecursionlimit(10**7) def I(): return int(sys.stdin.readline().rstrip()) def MI(): return map(int,sys.stdin.readline().rstrip().split()) def LI(): return list(map(int,sys.stdin.readline().rstrip().split())) def LI2(): return list(map(int,sys.stdin.readline().rstrip())) def S(): return sys.stdin.readline().rstrip() def LS(): return list(sys.stdin.readline().rstrip().split()) def LS2(): return list(sys.stdin.readline().rstrip()) # a1+…+a8 == 2*N (0 <= ai <= N) の解の個数 N = I() a = 5040 # 7! x = 1 for i in range(1,8): x *= 2*N+i y = 1 for i in range(7): y *= N+i print(x//a-8*y//a)