#include <bits/stdc++.h>

using namespace std;

typedef long long ll;

const int INF = (1<<30)-1;
const ll LINF = (1LL<<60)-1;

#define rep(i, n) for (int i = 0; i < n; i++)
#define sz(a) (int)(a.size())

template<class T> 
bool chmax(T &a, T b) {if (a < b) {a = b;return true;}else return false;}

template<class T> 
bool chmin(T &a, T b) {if (a > b) {a = b;return true;}else return false;}

//コーナーケースに気をつけろ！
int main() {
    int a, b, c;    cin >> a >> b >> c;
    cout << 21 - a - b - c << endl;
    return 0;
}

//小数点精度
//cout << fixed << std::setprecision(15) << y << endl;
#include<iostream>
#include<algorithm>
using namespace std;

int main(){
    int a;
    int b;
    int w;
    int Max = 0;
    int Min = 1000000000;
    cin >> a >> b >> w;
    for(int i = 1; i <= 1000000; i++){
        if(a*i <= w*1000 && w*1000 <= b*i){
            Min = min(Min,i);
            Max = max(Max,i);
        }
    }
    if(Max == 0) {
        cout << "UNSATISFIABLE" << endl;
    }else{
        cout << Min << " " << Max << endl;
    }
    return 0;
}