#include <bits/stdc++.h>
int test(int s, int w, int h) {
  int r = 0;
  for (int ww = 0; ww <= w / 2; ww++) {
    int hh = ww == 0 ? 0 : (w * h - s) / (4 * ww);
    if (0 <= hh && hh <= h / 2 && s == w * h - 4 * ww * hh) {
      if (ww == 0 && hh == 0)
        return (w / 2 + 1) * (h / 2 + 1) * 2 - 1;
      else
        r += ww != hh && w > 2 * hh && h > 2 * ww ? 2 : 1 ? 2 : 1;
    }
  }
  return r;
}
int main(int argc, char **args) {
  int n, m, s;
  scanf("%d %d %d", &n, &m, &s);
  long long r = 0;
  for (int a = 0; a <= n / 2; a++) {
    int s1 = 0;
    for (int b = 0; b <= m / 2; b++) {
      s1 = (1 + 2 * a) * (1 + 2 * b);
      int w = 1 + 2 * a;
      int h = 1 + 2 * b;
      if (w <= n && h <= m) {
        int t = test(s, w, h);
        int c = (n - w + 1) * (m - h + 1);
        if (t > 0) {
          r += c * t;
        }
      }
    }
  }
  printf("%I64d\n", r);
}
