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