#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;

int main() {
	int a, b, c;
	cin >> a >> b >> c;
	if (a == b && a != c) cout << c << endl;
	else if (a == c && a != b) cout << b << endl;
	else if (b == c && b != a) cout << a << endl;
	else if (a != b && b != c) cout << "0" << endl;
	else if(a == b && b == c) cout << a << endl;
}
#include <iostream>
#include <vector>
using namespace std;
int main(void){
    // Your code here!
    int A,B,W;
    vector<int> candi;
    scanf("%d %d %d",&A,&B,&W);
    W = W * 1000;
    
    if(W%B == 0 && W/B<=W/A)
        printf("%d %d\n", W/B, W/A);
    else if(W/B+1<=W/A)
        printf("%d %d\n", W/B+1,W/A);
    else
        printf("UNSATISFIABLE\n");
}
