def solve(p,q,r,s): x = q*r//gcd(p*s,q*r) return x*p,q def get(a,b):# 正面衝突、背面衝突が何秒ごとか? p1,q1 = a*b,a+b g = gcd(a,b) x,y = b//g, a//g if x%2 == y%2 == 1: t = 2*(x-x*(a+b)//2//b) else: t = 2*x - x*(a+b)//b p2, q2 = x*a, t return [(p1,q1),(p2,q2)] from math import gcd a,b,c = map(int,open(0).read().split()) ans = [solve(p,q,r,s) for p,q in get(a,b) for r,s in get(a,c)] ans.sort(key = lambda x: x[0]/x[1]) p,q = ans[0] g = gcd(p,q) print(f"{p//g}/{q//g}")