import sys input=sys.stdin.readline def I(): return int(input()) def MI(): return map(int, input().split()) def LI(): return list(map(int, input().split())) def main(): mod=10**9+7 N=I() ans=0 for t in range(100): for g in range(t+1): for pg in range(100): temp=5*t + 2*g +3*pg if temp==N: ans+=1 print(ans) main()