#include <iostream>
#include <cmath>
using namespace std;

void solve(double a,double b,double W){
    int min=ceil(W/b),max=floor(W/a);
    if((b*min-W)<=(b-a)*min&&(a*max-W)<=(b-a)*max){
        cout<<min<<" "<<max;
    }else{
        cout<<"UNSATISFIABLE";
    }
}

int main(){
    double a,b,w;
    cin>>a>>b>>w;
    double W=1000*w;
    solve(a,b,W);
    return 0;
}
#include<iostream>
#include<utility>
#include<algorithm>
#include<set>
#include<vector>
#include<cmath>
#define forn(i, x, n) for(int i = x; i < n; i++)
using namespace std;
typedef long long ll;
const int mod = 1e9 + 7;
const bool DEBUG = 0;

void solve(){
    int a, b, w;
    cin>>a>>b>>w;
    w *= 1000;
    int mn = ceil(w * 1.0 / b);
    int mx = w / a;
    if(mx < mn || mn == 0) cout<< "UNSATISFIABLE";
    else cout<< mn << ' ' << mx;
}

int main(){
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	int t = 1;
    //cin>>t;
	//while(t--) cout<<solve()<<'\n';
	while(t--) solve(), cout<<'\n';


}
