#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include //#include #include #define rep(i,n) for(int i=0;i<(n);i++) #define all(x) x.begin(), x.end() #define rall(x) x.rbegin(), x.rend() #define sz(x) ((int)(x).size()) #define pb push_back using ll = long long; using namespace std; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b> A >> B >> S; ll ans = 0; for(ll s=1;s<=S;s++){ for(ll a=1;a*a<=s;a++){ if(s%a==0){ ll b=s/a; if(a<=A&&b<=B) ans += (A-a+1)*(B-b+1); if(a!=b&&a<=B&&b<=A) ans += (B-a+1)*(A-b+1); } } } cout << ans << endl; return 0; }