#include <bits/stdc++.h>
using namespace std;
const int M = 1000000007;
const int N = 110;
long long n, m, s, a, b, c, d, ans;
int main() {
  ios::sync_with_stdio(0);
  cin >> n >> m >> s;
  for (long long a = 1; a <= n; a += 2)
    for (long long b = 1; b <= m; b += 2)
      for (long long c = 1; c <= n; c += 2) {
        long long d = (s - a * b + min(a, c) * b) / c;
        if (d < 0 || a * b + c * d - min(a, c) * b != s || b > d) continue;
        if (n < max(a, c) || m < max(b, d)) continue;
        if (d % 2 == 0) continue;
        long long now = (n - max(a, c) + 1) * (m - max(b, d) + 1);
        if (b != d)
          ans += 2LL * now;
        else
          ans += now;
      }
  cout << ans << '\n';
}
