A,B,S = map(int,input().split()) ans = 0 for i in range(1,S + 1): if S % i != 0: continue j = S // i if i <= A and j <= B: ans += (A - i + 1) * (B - j + 1) print(ans)