#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, x, y;
  while (1) {
    cin >> a >> b >> c;
    for (x = a; x <= b; x++) y = c / x;
    if (c - (x * y == 0))
      cout << x << endl;
    else if (c - (x * y != 0))
      break;
  }
}
