#include<bits/stdc++.h>

using namespace std;

#define ll long long int
#define get(a) ll a ; cin >> a ;
#define show(a) cout << a << endl;

int main()
{
	ios_base::sync_with_stdio(false);
    cin.tie(NULL);

	double a, b, w;

	cin >> a >> b >> w;

	int lower = int(ceil(1000*w/b)) ;
	int upper = int(floor(1000*w/a));
	if(lower > upper)
		cout << "UNSATISFIABLE" << endl;
	else
		cout << lower << " " << upper << endl;



	return 0;
}
#include <iostream>
using namespace std;

int A, B;
double W;

int isin(double N) {
    if(N >= A and N <= B) {
        return true;
    } else {
        return false;
    }
}

int main() {
    cin >> A >> B >> W;
    int max = 0;
    int min = 0;
    for (int i = 1; i <= W * 1000; i++) {
        double pre = W * 1000 / i;

        if(isin(pre)) {
            min = i;
            break;
        }
    }

    for (int i = W * 1000; i > 0; i--) {
        double pre = W * 1000 / i;

        if(isin(pre)) {
            max = i;
            break;
        }
    }

    if (min == 0) {
        min = max;
    }
    if (max == 0) {
        max = min;
    }

    if (min == 0 and max == 0) {
        cout << "UNSATISFIABLE" << endl;
    } else {
        cout << min << " " << max << endl;
    }
}