#include<bits/stdc++.h>
using namespace std;

#define ll long long int

void solve()
{
     int a[4];
     int mx=INT_MAX;
    int ans=INT_MAX;
     for(int i=0;i<4;i++)
     {
       cin>>a[i];
       if(a[i]<ans)
       {
         ans=a[i];
       }
       
     }
     
    cout<<ans<<endl;

}


int main(){
      solve();



    return 0;
}
#include<iostream>
#include<string>
#include<map>
#include<set>
#include<algorithm>
#include<functional>
#include<vector>
#include<math.h>
#define rep(i,n) for (int i = 0, i < n; i++)
using namespace std;

int main(){
    int a,b,w;
    cin >> a >> b >> w;
    w *= 1000;
    int kmax = floor(double(w)/a), kmin = ceil(double(w)/b);
    if (kmin * a <= w){
        cout << kmin << " " << kmax << endl;
    } else {
        cout << "UNSATISFIABLE" << endl;
    }
}