a = int(input()) ans = 0 for i in range(a // 5 + 1): for j in range(i + 1): for k in range(a // 3 + 1): if i * 5 + j * 2 + k * 3 == a: ans += 1 print(ans)