#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, b, st = 1, dr = 100;
  cin >> n >> a >> b;
  int ans = -1;
  dr = min(a, b);
  while (st <= dr) {
    int mij = (st + dr) / 2;
    if (a / mij + b / mij >= n) {
      ans = mij;
      st = mij + 1;
    } else
      dr = mij - 1;
  }
  cout << ans;
}
