#include <bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(0); cin.tie(0);
// freopen("input.txt", "r", stdin);
// freopen("output.txt", "w", stdout);
double a,b,r;
cin >>a >>b>>r;
long long cnt=0;
// cout << (a*a + y*y -2*a*y + b*b -r*r) << endl;
// cout << ceil(b-r) << ' ' << floor(r+b) << endl;
for (int y = ceil(b-r);y<=floor(r+b);y++){
double dy = (double)y;
// cout << dy << " " << a << " " << b << endl;
// cout << a << ' '<< dy << ' ' << b << endl;
double denta = 4.0*a*a -4*( a*a+dy*dy - 2*a*dy + b*b - r*r);
// cout << denta << endl;
// cout << (double)sqrt(denta) << endl;
double x1 = (2*a - sqrt(denta))/2;
double x2 = (2*a + sqrt(denta))/2;
int k1=ceil(x1);
int k2=floor(x2);
// cout << y << ' '<< x1 << ' ' << x2 << endl;
// cout << y << ' '<< k1 << ' ' << k2 << endl;
cnt = cnt + abs(k2-k1) +1;
}
cout<<cnt;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpewogICAgaW9zX2Jhc2U6OnN5bmNfd2l0aF9zdGRpbygwKTsgY2luLnRpZSgwKTsKICAgIC8vIGZyZW9wZW4oImlucHV0LnR4dCIsICJyIiwgc3RkaW4pOwogICAgLy8gZnJlb3Blbigib3V0cHV0LnR4dCIsICJ3Iiwgc3Rkb3V0KTsKICAgIGRvdWJsZSBhLGIscjsKICAgIGNpbiA+PmEgPj5iPj5yOwogICAgbG9uZyBsb25nIGNudD0wOwogICAgCiAgICAvLyBjb3V0IDw8IChhKmEgKyB5KnkgLTIqYSp5ICsgYipiIC1yKnIpIDw8IGVuZGw7CiAgICAvLyBjb3V0IDw8IGNlaWwoYi1yKSA8PCAnICcgPDwgZmxvb3IocitiKSA8PCBlbmRsOwogICAgZm9yIChpbnQgeSA9IGNlaWwoYi1yKTt5PD1mbG9vcihyK2IpO3krKyl7CiAgICAgICAgZG91YmxlIGR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