#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, s;
  while (scanf("%d%d%d", &n, &m, &s) != EOF) {
    long long ans = 0;
    for (int i = 1; i <= n; i += 2)
      for (int j = 1; j <= m; j += 2) {
        int area1 = i * j;
        if (area1 > s)
          break;
        else if (area1 == s)
          ans +=
              (2 * (i + 1) / 2 * (j + 1) / 2 - 1) * (n - i + 1) * (m - j + 1);
        else {
          int area2 = s - area1;
          if (area2 % 2 == 0)
            for (int k = 2; k + j <= m; k += 2)
              if (area2 % k == 0) {
                int t = area2 / k;
                if (t < i && t & 1) ans += 2 * (n - i + 1) * (m - k - j + 1);
              }
        }
      }
    printf("%I64d\n", ans);
  }
  return 0;
}
