#include<bits/stdc++.h>
using namespace std;
long long MOD=1e9+7;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(0);
int i,j;
int n,a,b;
cin>>n>>a>>b;
if(a<b)
swap(a,b);
int den1 = int(round(a*n*1.0/(a+b)));
if(den1 == 0)
den1++;
else if(den1 == n)
den1--;
int den2 = n-den1;
// cout<<den1<<" "<<den2<<endl;
int aa = a/den1;
int bb = b/den2;
// cout<<aa<<" "<<bb<<endl;
int ans = min(aa,bb);
cout<<ans<<endl;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmxvbmcgbG9uZyBNT0Q9MWU5Kzc7CgppbnQgbWFpbigpCnsKCWlvc19iYXNlOjpzeW5jX3dpdGhfc3RkaW8oZmFsc2UpOwoJY2luLnRpZSgwKTsKCQoJaW50IGksajsKCWludCBuLGEsYjsKCWNpbj4+bj4+YT4+YjsKCWlmKGE8YikKCQlzd2FwKGEsYik7CglpbnQgZGVuMSA9IAlpbnQocm91bmQoYSpuKjEuMC8oYStiKSkpOwoJaWYoZGVuMSA9PSAwKQoJCWRlbjErKzsKCWVsc2UgaWYoZGVuMSA9PSBuKQoJCWRlbjEtLTsKCWludCBkZW4yID0gbi1kZW4xOwoJCi8vCWNvdXQ8PGRlbjE8PCIgIjw8ZGVuMjw8ZW5kbDsKCWludCBhYSA9IGEvZGVuMTsKCWludCBiYiA9IGIvZGVuMjsKLy8JY291dDw8YWE8PCIgIjw8YmI8PGVuZGw7CglpbnQgYW5zID0gbWluKGFhLGJiKTsKCWNvdXQ8PGFuczw8ZW5kbDsKfQ==