#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, n, a, b, c, d;
  ios_base::sync_with_stdio(false);
  cin >> n >> a >> b;
  int ar[n - 1], j = 1, k = n - 1;
  for (i = 0; i < (n - 1); i++) {
    c = a / j;
    d = b / k;
    j++;
    k--;
    (c < d) ? (ar[i] = c) : (ar[i] = d);
  }
  sort(ar, ar + (n - 1));
  cout << ar[n - 2];
  return 0;
}
