#include <bits/stdc++.h>   using namespace std;   int n, m, s;   long long ans = 0;   int main() {     int i, j, k;     int a1, b1, a2, b2;     int x1, y1, x2, y2;     int p1, p2;     cin >> n >> m >> s;     for (i = 0; i <= n / 2; i++) {       for (j = 0; j <= m / 2; j++) {         for (k = 0; k <= n / 2; k++) {           a1 = i;           b1 = j;           a2 = k;           x1 = 1 + 2 * a1;           y1 = 1 + 2 * b1;           x2 = 1 + a2 * 2;           if (x2 > x1) {             if ((s - x1 * y1) % (x2 - x1) == 0 && (s - x1 * y1) > 0) {               y2 = (s - x1 * y1) / (x2 - x1);               if (y2 <= y1 && y2 > 0 && y2 % 2 == 1) {                 b2 = (y2 - 1) / 2;                 if (((n - 2 * a2) * (m - 2 * b1)) > 0)                   ans += ((n - 2 * a2) * (m - 2 * b1));               }             }             if (s % x2 == 0) {               y2 = s / x2;               if (y2 > y1 && y2 % 2 == 1) {                 b2 = (y2 - 1) / 2;                 if (((n - 2 * a2) * (m - 2 * b2)) > 0)                   ans += ((n - 2 * a2) * (m - 2 * b2));               }             }           } else if (x2 == x1) {             if (x1 * y1 == s) {               if (((n - 2 * a1) * (m - 2 * b1) * (b1 + 1)) > 0)                 ans += ((n - 2 * a1) * (m - 2 * b1) * (b1 + 1));             }             if (s % x1 == 0) {               y2 = s / x1;               if (y2 > y1 && y2 % 2 == 1) {                 b2 = (y2 - 1) / 2;                 if (((n - 2 * a1) * (m - 2 * b2)) > 0)                   ans += ((n - 2 * a1) * (m - 2 * b2));               }             }           } else {             if (s + x2 * y1 - x1 * y1 > 0 && (s + x2 * y1 - x1 * y1) % x2 == 0) {               y2 = (s + x2 * y1 - x1 * y1) / x2;               if (y2 > y1 && y2 % 2 == 1) {                 b2 = (y2 - 1) / 2;                 if (((n - 2 * a1) * (m - 2 * b2)) > 0)                   ans += ((n - 2 * a1) * (m - 2 * b2));               }             }             if (x1 * y1 == s) {               if (((n - 2 * a1) * (m - 2 * b1) * (b1 + 1)) > 0)                 ans += ((n - 2 * a1) * (m - 2 * b1) * (b1 + 1));             }           }         }       }     }     cout << ans << endl;     return 0;   }   