#include <bits/stdc++.h>
using namespace std;
int n, a, b;
int chk(int p) {
  int x, y, z;
  x = a / p;
  y = n - x;
  if (y * p <= b)
    return 1;
  else
    return 0;
}
int main() {
  int m, i, j, p, q, sz, mx, cnt[1002], k, st, ed, md;
  while (cin >> n >> a >> b) {
    st = 1;
    ed = min(a, b);
    while (st <= ed) {
      md = (st + ed) / 2;
      if (chk(md))
        st = md + 1;
      else
        ed = md - 1;
    }
    if (chk(md))
      cout << md << endl;
    else
      cout << md - 1 << endl;
  }
  return 0;
}
