N = int(input()) Count = 0 for T in range(100): for G in range(T + 1): for PG in range(100): if 5 * T + 2 * G + 3 * PG == N: Count += 1 print(Count)