N = int(input()) cnt = 0 for t in range(N//5+1): for c in range(t+1): for p in range(N//3+1): if t*5+c*2+p*3==N: cnt += 1 print(cnt)