#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long LL; typedef pair P; LL L; LL gcd(LL a, LL b){ return (b == 0) ? a : gcd(b, a%b); } typedef long double LD; bool comp(P a, P b){ return a.first/(LD)a.second < b.first/(LD)b.second; } P solve(LL x,LL y){ LL u = (y/gcd(x, y))*(L/gcd(L,y)); y /= gcd(L, y); return make_pair(u / gcd(u, y), y / gcd(u, y)); } int main(void){ LL a, b, c; cin >> a >> b >> c; L = (a*b*c)/gcd(gcd(a,c),b); P res = make_pair(L, 1ll); a = L / a; b = L / b; c = L / c; {auto tmp = solve(a + b, a + c); if (comp(tmp, res))res = tmp; } {auto tmp = solve(a + c, a + b); if (comp(tmp, res))res = tmp; } {auto tmp = solve(c + b, a + c); if (comp(tmp, res))res = tmp; } {auto tmp = solve(a + b, b + c); if (comp(tmp, res))res = tmp; } {auto tmp = solve(a + c, c + b); if (comp(tmp, res))res = tmp; } {auto tmp = solve(c + b, a + b); if (comp(tmp, res))res = tmp; } {auto tmp = solve(abs(a - b), a + c); if (comp(tmp, res))res = tmp; } {auto tmp = solve(abs(a - c), a + b); if (comp(tmp, res))res = tmp; } {auto tmp = solve(abs(c - b), a + c); if (comp(tmp, res))res = tmp; } {auto tmp = solve(abs(a - b), b + c); if (comp(tmp, res))res = tmp; } {auto tmp = solve(abs(a - c), c + b); if (comp(tmp, res))res = tmp; } {auto tmp = solve(abs(c - b), a + b); if (comp(tmp, res))res = tmp; } {auto tmp = solve( a + c, abs(a - b)); if (comp(tmp, res))res = tmp; } {auto tmp = solve(a + b, abs(a - c)); if (comp(tmp, res))res = tmp; } {auto tmp = solve( a + c, abs(c - b)); if (comp(tmp, res))res = tmp; } {auto tmp = solve( b + c, abs(a - b)); if (comp(tmp, res))res = tmp; } {auto tmp = solve( c + b, abs(a - c)); if (comp(tmp, res))res = tmp; } {auto tmp = solve( a + b, abs(c - b)); if (comp(tmp, res))res = tmp; } {auto tmp = solve(abs(a - b), abs(a - c)); if (comp(tmp, res))res = tmp; } {auto tmp = solve(abs(a - c), abs(a - b)); if (comp(tmp, res))res = tmp; } {auto tmp = solve(abs(c - b), abs(a - c)); if (comp(tmp, res))res = tmp; } {auto tmp = solve(abs(a - b), abs(b - c)); if (comp(tmp, res))res = tmp; } {auto tmp = solve(abs(a - c), abs(c - b)); if (comp(tmp, res))res = tmp; } {auto tmp = solve(abs(c - b), abs(a - b)); if (comp(tmp, res))res = tmp; } cout << res.first << "/" << res.second << endl; return(0); }