N = int(input()) ans = 0 for t in range(100): for g in range(t + 1): for pg in range(100): if 5*t+2*g+3*pg==N: ans += 1 print(ans)