#include <bits/stdc++.h>
using namespace std;
void err(istream_iterator<string> it) { cerr << endl; }
template <typename T, typename... Args>
void err(istream_iterator<string> it, T a, Args... args) {
  cerr << *it << " = " << a << "; ";
  err(++it, args...);
}
void c_p_c() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
int32_t main() {
  c_p_c();
  long long n, a, b;
  cin >> n >> a >> b;
  long long i = 100;
  while (i >= 1) {
    long long pa = a / i;
    long long push_back = b / i;
    if (pa > 0 && push_back > 0 && pa + push_back >= n) break;
    i--;
  }
  cout << i;
  return 0;
}
