#include <bits/stdc++.h>
using namespace std;
int first, second, n;
int main() {
  cin >> first >> second >> n;
  double mm = 9999999;
  double t = (double)first / second;
  int a = 0, b = 0;
  int p = 0;
  int q = 0;
  for (int i = 1; i <= n; i++) {
    b = i;
    a = t * i;
    double t1 = abs((double)a / b);
    double ff = abs((double)t - t1);
    if (ff < mm) {
      mm = ff;
      p = a;
      q = b;
    }
    a++;
    b = i;
    t1 = abs((double)a / b);
    ff = abs((double)t - t1);
    if (ff < mm) {
      mm = ff;
      p = a;
      q = b;
    }
  }
  cout << p << "/" << q;
}
