#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  long long n, a, b;
  cin >> n >> a >> b;
  long long low = 1, high = min(a, b), ans = 0;
  while (low <= high) {
    long long mid = (low + high) / 2;
    long long x = a / mid;
    if (b >= mid * (n - x)) {
      ans = mid;
      low = mid + 1;
    } else {
      high = mid - 1;
    }
  }
  cout << ans << endl;
  return 0;
}
