#include <bits/stdc++.h>
using namespace std;
ifstream in("test.in");
ofstream out("test.out");
int n, a, b;
bool ok(int x) {
  if (a / x + b / x >= n && x <= a && x <= b) return true;
  return false;
}
int cautbin() {
  int pas = 1 << 7, r = 0;
  while (pas) {
    if (ok(r + pas)) r += pas;
    pas /= 2;
  }
  return r;
}
int main() {
  cin >> n >> a >> b;
  cout << cautbin();
  return 0;
}
