#include <bits/stdc++.h>
using namespace std;
const long long int MOD = 1000000007;
const long long BIG = 1446803456761533460;
const int Big = 336860180;
stringstream sss;
const long long int maxn = 100010;
void MAIN() {
  long long int n, a, b;
  cin >> n >> a >> b;
  long long int s = 0;
  for (long long int i = (1); i < (min(a, b) + 1); ++i) {
    long long int x = a / i;
    if ((n - x) * i <= b) s = i;
  }
  cout << s << endl;
}
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  cout << fixed << setprecision(10);
  sss << R"(
    )";
  MAIN();
  return 0;
}
