#include <bits/stdc++.h>
using namespace std;
const int maxn = 100005;
int n, a, b;
int main() {
  cin >> n >> a >> b;
  int ans = 0;
  for (int i = 1; i <= min(a, b); i++) {
    int tn = n;
    tn -= a / i;
    tn -= b / i;
    if (tn <= 0) ans = i;
  }
  cout << ans << endl;
  return 0;
}
