#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define MOD 1000000007 namespace math{ long long int gcd(long long int a, long long int b){ if (a > b){ swap(a, b); } while (a){ swap(a, b); a %= b; } return b; } long long int lcm(long long int a, long long int b){ long long int g =gcd(a, b); a /= g; return a*b; } } using namespace math; struct st{ long long int u; long long int s; st(long long int u_ = 0,long long int s_=0){ u = u_; s = s_; } }; void y(st &a){ long long int g = gcd(a.s, a.u); a.s /= g; a.u /= g; } st mul(st a, st b){ st s; s.s = a.s*b.s; s.u = a.u*b.u; y(s); return s; } vector v; int main(){ for (int i = 0; i < 3; i++){ int a; scanf("%d", &a); v.push_back(a); } sort(v.begin(), v.end()); st k = st(v[0] * v[1] * (v[1] + v[2]), (v[2] + v[1])*(v[0] + v[1])); st kk = st(v[2] * v[1] * (v[1] + v[0]), (v[2] + v[1])*(v[0] + v[1])); long long int B = lcm(k.u, kk.u); k.u = B; y(k); printf("%lld/%lld\n", k.u, k.s); return 0; }