import sys
def S(): return sys.stdin.readline().rstrip()
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int,sys.stdin.readline().rstrip().split())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())

n = I()
ans = 0
for i in range(21):
    for j in range(i+1):
        for k in range(35):
            if i*5 + j*2 + k*3 == n:
                ans += 1
print(ans)