#include<bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, s, x;
cin >> a >> b >> c;
s = min (a, max(b, c));
x = max (a, max(b, c));
for (int i = 2; i < x; i++) {
if (s % i == 0 && x % i == 0) {
s = s / i;
x = x / i;
}
}
cout << s << "/" << x;
return 0;
}