#include <bits/stdc++.h>
using namespace std;
void solve(int r, int c, int s) {
  long long ans = 0;
  if (s % 2 == 1) {
    for (int x = 0; 2 * x + 1 <= r; ++x) {
      for (int y = 0; 2 * y + 1 <= c; ++y) {
        if ((2 * x + 1) * (2 * y + 1) == s) {
          long long t = (r - 2 * x) * (c - 2 * y);
          ans += ((x + 1) * (y + 1) * 2 - 1) * t;
        }
      }
    }
    for (int x = 0; 2 * x + 1 <= r; ++x) {
      for (int y = 0; 2 * y + 1 <= c; ++y) {
        int delta = (2 * x + 1) * (2 * y + 1) - s;
        if (delta > 0) {
          long long t = (r - 2 * x) * (c - 2 * y);
          if (delta % 4 != 0) continue;
          delta /= 4;
          int c = 0;
          for (int k = 1; k <= x; ++k) {
            if (delta % k == 0 && delta / k <= y) ++c;
          }
          ans += c * t * 2;
        }
      }
    }
  } else {
    ans = 0;
  }
  cout << ans << endl;
}
int main() {
  for (int r, c, s; cin >> r >> c >> s; solve(r, c, s))
    ;
}
