#include using namespace std; typedef long long ll; ll x, y, z; ll gcd(ll a, ll b) { if (b == 0) return a; return gcd(b, a % b); } ll lcm(ll a, ll b) { return a / gcd(a, b) * b; } void yuefen(ll &a, ll &b) { ll g = gcd(a, b); a /= g; b /= g; } int main() { // freopen("circle.in", "r", stdin); // freopen("circle.out", "w", stdout); ios::sync_with_stdio(false); cin >> x >> y >> z; ll m = gcd(abs(z - x) * y, abs(z - y) * x); ll g = gcd(x*y*z, m); cout << (x*y*z/g) << "/" << m/g << "\n"; // ll p = x * y, q = abs(x - y); // yuefen(p, q); // for (ll rt = 1; ; rt ++) { // ll tmpp = p, tmpq = q; // p *= rt; yuefen(p, q); // if ((p * abs(x - z)) % (q * x * z) == 0 // && (p * abs(y - z)) % (q * y * z) == 0) { // cout << p << "/" << q << "\n"; // return 0; // } // p = tmpp; q = tmpq; // } return 0; }