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