#include #include #include #include //#include #include #include #include #include #include //#include #include #include #include //#include #include #include //#include #include #include #include #include const int dx[] = {1, 0, -1, 0}; const int dy[] = {0, 1, 0, -1}; using namespace std; typedef long long ll; typedef vector vi; typedef vector vll; typedef pair pii; pair calc(ll x, ll y) { ll z = y-x; ll w = x*y; ll g = __gcd(z, w); return make_pair(z/g, w/g); } int main() { cin.tie(0); ios::sync_with_stdio(false); vector T(3); for (int i = 0; i < 3; i++) cin >> T[i]; auto x = calc(T[0], T[1]); auto y = calc(T[0], T[2]); swap(x.first, x.second); swap(y.first, y.second); pair z = make_pair(x.first*y.second, x.second*y.second); pair w = make_pair(y.first*x.second, y.second*x.second); ll lcm = z.first/__gcd(z.first, w.first) * w.first; ll gcd = __gcd(lcm, z.second); cout << lcm/gcd << "/" << z.second/gcd << endl; return 0; }