X=int(float(input())*4) def idx(a,b,s): return (s*101+a)*101+b M=101*101*601 dp=[0]*M for x in range(101): dp[idx(x,x,x)]=1 for _ in range(5): prev=dp dp=[0]*M for a in range(101): for b in range(a,101): for s in range(601): for x in range(101): if prev[idx(a,b,s)]: dp[idx(min(a,x),max(b,x),s+x)]+=1 ans=0 for a in range(101): for b in range(101): for s in range(601): if a+b+X==s: ans+=dp[idx(a,b,s)] print(ans)