#include using namespace std; #define rep(i,a,b) for(int i=a;i vi; typedef vector vs; typedef pair pii; ll euclid(ll a, ll b) { ll temp; if (a < b) { temp = a; a = b; b = temp; } if (b < 1) return -1; if (a % b == 0) return b; return euclid(b, a % b); } int main() { ll t1, t2, t3; cin >> t1 >> t2 >> t3; ll up = t2 * t3 * abs(t2 - t1); ll down = abs(t3 - t2) * t1 * t2; ll a = euclid(up, down); up /= a; down /= a; ll m = down; up = t2 * t3 * m; down = abs(t3 - t2); a = euclid(up, down); up /= a; down /= a; cout << up << "/" << down << endl; }