#include <bits/stdc++.h>
long long N, M, S;
int main() {
  long long i, j, k, a, b, c, d, ans;
  scanf("%I64d%I64d%I64d", &N, &M, &S);
  if (S % 2 == 0) {
    printf("0\n");
    return 0;
  }
  ans = 0;
  for (i = 1; i <= N; i++)
    if ((S % i == 0) && (S / i <= M)) {
      j = S / i;
      a = i / 2;
      b = j / 2;
      ans += (N - i + 1) * (M - j + 1) * (2 * (a + 1) * (b + 1) - 1);
    }
  for (i = 1; i <= (N - 1) / 2; i++)
    for (j = 0; j <= (M - 1) / 2 - 1; j++)
      for (k = 0; k <= i - 1; k++) {
        a = i * 2 + 1;
        b = j * 2 + 1;
        c = k * 2 + 1;
        d = (S - a * b + b * c) / c;
        if (((S - a * b + b * c) % c == 0) && (d > b) && (d <= M))
          ans += 2 * (N - a + 1) * (M - d + 1);
      }
  printf("%I64d\n", ans);
  return 0;
}
