#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  cout.precision(16);
  long long tc = 1;
  while (tc--) {
    long long x, y, n;
    cin >> x >> y >> n;
    long long res_a, res_b;
    long double diff = 1e12, f = (x * 1.0) / y;
    long double a, b;
    for (b = 1; b <= n; b++) {
      a = floor((b * x) / y);
      long double s = (a * 1.0) / b;
      if (abs(f - s) < diff) {
        diff = abs(f - s);
        res_a = a, res_b = b;
      }
      a = ceil((b * x) / y);
      s = (a * 1.0) / b;
      if (abs(f - s) < diff) {
        diff = abs(f - s);
        res_a = a, res_b = b;
      }
    }
    cout << res_a << '/' << res_b;
  }
  return 0;
}
