#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
using ll = long long;

int main() {
  int A, B, W;
  cin >> A >> B >> W;

  int mi = INT_MAX, ma = INT_MIN;
  for (int i = 1; i <= 1000000; i++) {
    if (A * i <= 1000 * W && 1000 * W <= B * i) {
      mi = min(mi, i);
      ma = max(ma, i);
    }
  }
  if (ma == INT_MIN)
    cout << "UNSATISFIABLE";
  else
    cout << mi << ' ' << ma;
  return 0;
}
#include <bits/stdc++.h>
using namespace std;

int main() {
    long double a, b, r;
    cin >> a >> b >> r;
    
    r = nextafter(r, INFINITY);
    int lx = ceil(a - r), rx = floor(a + r);
    long long ans = 0;
    for (int x = lx; x <= rx; ++x) {
        long double dy = sqrt(r * r - (x - a) * (x - a));
        int upper = floor(b + dy), lower = ceil(b - dy);
        ans += upper - lower + 1;
    }
    cout << ans << '\n';
}