#include #define rep(i, n) for (int i = 0; i < (n); i++) #define rep2(i, a, b) for (int i = (a); i < (b); i++) #define rrep(i, n) for (int i = (n) - 1; i >= 0; i--) #define rrep2(i, a, b) for (int i = (a) - 1; i >= (b); i--) #define all(v) (v).begin(), (v).end() using namespace std; typedef long long ll; const ll inf = 1e9; const ll mod = 1e9 + 7; ll lcm(ll x, ll y) { return x / __gcd(x, y) * y; } int main() { ll T[3]; rep (i, 3) cin >> T[i]; ll U[6]; sort(T, T + 3); U[0] = T[0] + T[1]; U[1] = T[1] + T[2]; U[2] = T[2] + T[0]; U[3] = T[1] - T[0]; U[4] = T[2] - T[1]; U[5] = T[2] - T[0]; if (3 * T[0] >= T[1]) U[3] = U[0]; if (3 * T[2] >= T[1]) U[4] = U[1]; if (3 * T[2] >= T[0]) U[5] = U[2]; ll m = U[0]; rep (i, 6) m = lcm(m, U[i]); ll S[6]; S[0] = m * T[0] * T[1] / (T[0] + T[1]); S[1] = m * T[1] * T[2] / (T[1] + T[2]); S[2] = m * T[2] * T[0] / (T[2] + T[0]); S[3] = m * T[0] * T[1] / (T[1] - T[0]); S[4] = m * T[1] * T[2] / (T[2] - T[1]); S[5] = m * T[2] * T[0] / (T[2] - T[0]); ll n[8]; n[0] = lcm(S[0], lcm(S[1], S[2])); n[1] = lcm(S[3], lcm(S[1], S[2])); n[2] = lcm(S[0], lcm(S[4], S[2])); n[3] = lcm(S[3], lcm(S[4], S[2])); n[4] = lcm(S[0], lcm(S[1], S[5])); n[5] = lcm(S[3], lcm(S[1], S[5])); n[6] = lcm(S[0], lcm(S[4], S[5])); n[7] = lcm(S[3], lcm(S[4], S[5])); ll x = *min_element(n, n + 8); ll g = __gcd(m, x); m /= g; x /= g; cout << x << "/" << m << endl; }