#include <bits/stdc++.h>
using namespace std;
int main() {
  long long total = 0;
  int n, m, s;
  scanf("%d%d%d", &n, &m, &s);
  for (int w = 1; w <= m; w += 2)
    if (s % w == 0) {
      int h = s / w;
      if (!(h & 1) || !(h <= n)) continue;
      total += ((long long)(h / 2 + 1) * (w / 2 + 1) * 2L - 1L) *
               ((long long)(n - h + 1) * (m - w + 1));
    }
  for (int w = 3; w <= m; w += 2)
    for (int h = 3; h <= n; h += 2)
      if (w * h > s) {
        long long combi = 0;
        int a = w * h - s;
        if (a % 4 != 0)
          continue;
        else
          a >>= 2;
        for (int ww = 1; (ww << 1) + 1 <= w; ++ww)
          if (a % ww == 0) {
            int hh = a / ww;
            if ((hh << 1) + 1 <= h && hh >= 1) ++combi;
          }
        total += combi * 2L * ((long long)(n - h + 1) * (m - w + 1));
      }
  printf("%I64d\n", total);
  return 0;
}
