a,b,c=map(int,input().split()) x=int(max(a,b,c)) y=int(min(a,b,c)) while(y): d=x%y x=y y=d print(f'{y}/{x}')