#include #include #include #include using namespace std; #define rep(i,n) for(int i=0; i<(int)(n); i++) using i64 = long long; int main(){ std::ios::sync_with_stdio(false); std::cin.tie(nullptr); i64 A, B, S; cin >> A >> B >> S; i64 ans = 0; for(i64 h=1; h<=A; h++) for(i64 w=1; w<=B && w*h<=S; w++) ans += (A-h+1) * (B-w+1); cout << ans << endl; return 0; }