n = int(input()) cnt=0 for t in range(n//5+1): for g in range(t+1): for pg in range(n//3+1): if t*5+g*2+pg*3==n: cnt+=1 print(cnt)