mod = 1000000007 eps = 10**-9 def main(): import sys input = sys.stdin.readline N = int(input()) ans = 0 for x in range(100): for y in range(x+1): for z in range(100): if 5*x + 2*y + 3*z == N: ans += 1 print(ans) if __name__ == '__main__': main()