#include using namespace std; #define REP(i,a,b) for(i=a;i'9')break;*x=(*x)*10+k-'0';}if(m)(*x)=-(*x);} void reader(ll *x){int k,m=0;*x=0;for(;;){mygc(k);if(k=='-'){m=1;break;}if('0'<=k&&k<='9'){*x=k-'0';break;}}for(;;){mygc(k);if(k<'0'||k>'9')break;*x=(*x)*10+k-'0';}if(m)(*x)=-(*x);} void writer(ll x, char c){int s=0,m=0;char f[20];if(x<0)m=1,x=-x;while(x)f[s++]=x%10,x/=10;if(!s)f[s++]=0;if(m)mypc('-');while(s--)mypc(f[s]+'0');mypc(c);} template void writerLn(T x){writer(x,'\n');} template void sort(int N, T a[], void *mem = NULL){sort(a,a+N);} template void sort(int N, T1 a[], T2 b[], void *mem){int i;pair *r=(pair*)mem;rep(i,N)r[i].first=a[i],r[i].second=b[i];sort(r,r+N);rep(i,N)a[i]=r[i].first,b[i]=r[i].second;} template void sort(int N, T1 a[], T2 b[], T3 c[], void *mem){int i;pair > *r=(pair >*)mem;rep(i,N)r[i].first=a[i],r[i].second.first=b[i],r[i].second.second=c[i];sort(r,r+N);rep(i,N)a[i]=r[i].first,b[i]=r[i].second.first,c[i]=r[i].second.second;} template void sort(int N, T1 a[], T2 b[], T3 c[], T4 d[], void *mem){int i;pair,pair > *r=(pair,pair >*)mem;rep(i,N)r[i].first.first=a[i],r[i].first.second=b[i],r[i].second.first=c[i],r[i].second.second=d[i];sort(r,r+N);rep(i,N)a[i]=r[i].first.first,b[i]=r[i].first.second,c[i]=r[i].second.first,d[i]=r[i].second.second;} template void unique(T arr[], int &sz, int sorted=0){int i,k=0;if(!sorted)sort(arr,arr+sz);rep(i,sz)if(!k||arr[k-1]!=arr[i])arr[k++]=arr[i];sz=k;} template T GCD(T a,T b){T r; while(a)r=b,b=a,a=r%a; return b;} template T LCM(T a,T b){return a/GCD(a,b)*b;} template T GCD(T a,T b,T c){return GCD(GCD(a,b),c);} template T LCM(T a,T b,T c){return LCM(LCM(a,b),c);} template void reduceFraction(T&a, T&b){T g=GCD(a,b);a/=g;b/=g;} int N = 3; ll T[3]; ll ko[100000]; int kos; int main(){ ll i, j, k, a, b; ll lcm, g, p[3], t[3]; rep(i,N) reader(T+i); lcm = LCM(T[0], T[1], T[2]); rep(i,3) p[i] = lcm/T[i]; rep(a,3) REP(b,a+1,3){ g = max(p[a]-p[b], p[b]-p[a]); for(i=1;i*i<=g;i++) if(g%i==0){ ko[kos++] = i; ko[kos++] = g/i; } } unique(ko, kos); g = 1; rep(a,kos){ i = ko[a]; rep(j,3){ t[j] = p[j] % i; t[j] = min(t[j], i-t[j]); } if(t[0]==t[1] && t[0]==t[2]) g = max(g,i); } reduceFraction(lcm, g); writer(lcm,'/'); writerLn(g); return 0; }