#include <bits/stdc++.h>
using namespace std;
long long ans;
int main() {
  int n, m, s, k, i, j;
  while (scanf("%d %d %d", &n, &m, &s) != EOF) {
    ans = 0;
    for (i = 1; i <= n; i += 2) {
      for (j = 1; j <= m; j += 2) {
        if (i * j == s)
          ans += 1LL * (n - i + 1) * (m - j + 1) * ((i + 1) / 2 * (j + 1) - 1);
        if (i * j > s) {
          if ((i * j - s) % 4) continue;
          int t = ((i * j) - s) / 4;
          for (k = 1; k <= (i - 1) / 2; k++) {
            if (t % k) continue;
            if (t / k * 2 + 1 > j) continue;
            ans += 2LL * (n - i + 1) * (m - j + 1);
          }
        }
      }
    }
    printf("%I64d\n", ans);
  }
  return 0;
}
