a,b,s=map(int,input().split()) ans=0 for i in range(1,s+1): for j in range(i,s+1,i): k=j//i if i<=a and k<=b: ans+=(a-i+1)*(b-k+1) print(ans)