N = int(input()) ans = 0 for t in range(0, 21): for g in range(0, t + 1): for pg in range(0, 35): if t*5 + g*2 + pg*3 == N: ans += 1 print(ans)