#include<iostream>
using namespace std;
int main()
{
    int a,b,c,d_a,d_b,d_c;
    cin>>a>>b>>c;
    if(a<b && a<c)
    {
        d_b=b/a;
        d_c=c/a;
        cout << min(d_b,d_c) << endl;
    }
    else if(b<a && b<c)
    {
        d_a=a/b;
        d_c=c/b;
        cout << min(d_c,d_a) << endl;
    }
    else if(c<a && c<b)
    {
        d_a=a/c;
        d_b=b/c;
        cout << min(d_a,d_b) << endl;
    }
    else if(c==a && c==b)
    {
        cout << "-1" << endl;
    }
    return 0;
}
