#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1000 * 1 + 10, INF = 1e9 + 10;
int main() {
  ios::sync_with_stdio(false);
  long long x, y, n, ans1 = 0, ans2 = 0;
  long double mn = 1e9;
  cin >> x >> y >> n;
  long double f = (long double)x / (long double)y;
  for (long long b = 1; b <= n; b++) {
    long double a = (long double)(x * b) / y;
    long long c = floor(a), d = ceil(a);
    long double t = (long double)c / (long double)b,
                r = (long double)d / (long double)b;
    if ((long double)abs(t - f) < mn) {
      mn = abs(t - f);
      ans1 = c;
      ans2 = b;
    }
    if ((long double)abs(r - f) < mn) {
      mn = abs(r - f);
      ans1 = d;
      ans2 = b;
    }
  }
  cout << ans1 << '/' << ans2 << endl;
  return 0;
}
