import sys readline=sys.stdin.readline N=int(readline()) ans=0 for t in range(N//5+1): for g in range(N//2+1): for pg in range(N//3+1): if g<=t and 5*t+2*g+3*pg==N: ans+=1 print(ans)