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