#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, s, i, j;
  cin >> n >> m >> s;
  long long ans = 0;
  for (i = 1; i <= n; i += 2) {
    for (j = 1; j <= m; j += 2) {
      long long cnt = (n - i + 1) * (m - j + 1);
      long long tmp = 0;
      if (i * j == s) {
        tmp = (i + 1) / 2 * (j + 1) / 2;
        ans += cnt * (tmp * 2 - 1);
      }
      if (i * j > s) {
        int x, ss = i * j;
        if ((ss - s) % 4) continue;
        int res = (ss - s) / 4;
        for (int k = 1; k <= j / 2; k++) {
          if (res % k) continue;
          x = res / k;
          if (x > i / 2) continue;
          tmp += 2;
        }
        ans += cnt * tmp;
      }
    }
  }
  cout << ans << endl;
  return 0;
}
