#include <bits/stdc++.h>
using namespace std;
const double eps(1e-8);
long long n, m, s;
long long cal(long long i, long long j, long long s) {
  long long ret = 0;
  if (s == i * j) {
    return (i + 1) * (j + 1) / 2 - 1;
  }
  for (long long x = 1; x <= j - 2; x += 2) {
    if ((s - i * x) % (j - x) != 0) continue;
    long long y = (s - i * x) / (j - x);
    long long now = 2;
    if (y % 2 == 0) now = 0;
    if (y <= 0) now = 0;
    if (y > i) now = 0;
    ret += now;
  }
  return ret;
}
int main() {
  scanf("%I64d %I64d %I64d", &n, &m, &s);
  long long ans = 0;
  for (long long i = 1; i <= n; i += 2)
    for (long long j = 1; j <= m; j += 2) {
      ans += (n - i + 1) * (m - j + 1) * cal(i, j, s);
    }
  printf("%I64d\n", ans);
}
