#include <bits/stdc++.h>
long long n, m, s, rst;
int main() {
  scanf("%I64d%I64d%I64d", &n, &m, &s);
  long long i, j, rest, p, q;
  for (i = 1; i <= n; i += 2)
    for (j = 1; j <= m; j += 2) {
      if (i * j == s) {
        long long x = (j + 1) / 2;
        long long y = (i + 1) / 2;
        rst += (2 * x * y - 1) * (n - (y - 1) * 2) * (m - (x - 1) * 2);
      } else if (i * j < s) {
        rest = s - i * j;
        if (rest % 2) continue;
        for (p = 1; p <= n; p++) {
          if (i + p * 2 > n) break;
          if (p * j * 2 < rest) {
            long long bur = rest - p * j * 2;
            if (bur % i) continue;
            q = bur / (i * 2);
            long long y = i + p * 2;
            long long x = j + q * 2;
            if (x > m) continue;
            x = (x + 1) / 2;
            y = (y + 1) / 2;
            rst += (n - (y - 1) * 2) * (m - (x - 1) * 2) * 2;
          } else
            break;
        }
      }
    }
  printf("%I64d", rst);
}
