a,b,s=list(map(int,input().split ())) n=0 for i in s: for j in s: n+=(a-i+1)*(b-j+1) if i*(j+1)>s or j==b: break if i==a: break print(n)