def main(): from sys import stdin from itertools import permutations readline=stdin.readline n = int(readline()) cnt = 0 for t in range(n//2+1): for g in range(0, t+1): for pg in range(n//3+1): if 5*t + 2*g + 3*pg == n: cnt += 1 print(cnt) main()