#include using namespace std; int gcd(int m, int n) { int r = m % n; while (r != 0) { m = n; n = r; r = m % n; } return n; } int lcm(int m, int n) { return m / gcd(m,n) * n; } int main() { cin.tie(0); ios::sync_with_stdio(false); int a,b,c,tmp,x,y,z,tmp2; cin >> a >> b >> c; tmp = lcm(a, lcm(b,c)); a = tmp / a; b = tmp / b; c = tmp / c; for(int i = min(a, min(b, c)); i >= 2; i--) { x = a % i; y = b % i; z = c % i; if (x == y && y == z) { tmp2 = gcd(tmp,i); cout << tmp / tmp2 << '/' << i / tmp2 << "\n"; return 0; } } cout << tmp << '/' << 1 << "\n"; return 0; }