#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, b;
  cin >> n >> a >> b;
  int r = 0;
  for (int i = 1; i < 300; i++) {
    int x1 = a / i;
    int x2 = b / i;
    if (x1 + x2 >= n && x1 != 0 && x2 != 0) r = i;
  }
  cout << r;
  return 0;
}
