#1229 N = int(input()) Anslist = [] for a in range(0, 21): for b in range (0, a + 1): for c in range(0, 34): if N == 7 * a - 2 * b + 3 * c: Anslist.append([a, b, c]) else: pass Ans = len(Anslist) print(Ans)