#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, s;
  scanf("%d%d%d", &n, &m, &s);
  long long ans = 0;
  for (int a = 1; a <= n; a += 2) {
    for (int b = 1; b <= m; b += 2) {
      if (a * b > s) break;
      if (a * b == s) {
        long long temp = (n - a + 1) * (m - b + 1);
        temp = temp * (a + 1) / 2 * (b + 1) / 2;
        ans = ans + temp;
        continue;
      }
      int d;
      for (int c = 1; c <= b; c += 2) {
        if ((s + a * c - a * b) % c == 0 &&
            ((s + a * c - a * b) / c) % 2 == 1 && (s + a * c - a * b) / c >= a)
          d = (s + a * c - a * b) / c;
        else
          continue;
        if (d > n) continue;
        int x = max(a, d), y = b;
        if (x <= n && y <= m) {
          int temp = (n - x + 1) * (m - y + 1);
          ans = ans + temp;
        }
      }
      for (int c = b + 2; c <= m; c += 2) {
        if (s % c == 0 && (s / c) % 2 == 1 && s / c >= a)
          d = s / c;
        else if ((s - a * b) % (c - b) == 0 &&
                 ((s - a * b) / (c - b)) % 2 == 1 && (s - a * b) / (c - b) < a)
          d = (s - a * b) / (c - b);
        else
          continue;
        if (d > n) continue;
        int x = max(a, d), y = c;
        if (x <= n && y <= m) {
          int temp = (n - x + 1) * (m - y + 1);
          ans = ans + temp;
        }
      }
    }
  }
  printf("%I64d\n", ans);
  return 0;
}
