long a,b,c;g(long p,long q){return q?g(q,p%q):p;}main(s){c=scanf("%d%d%d",&a,&b,&c)>printf("%ld/%d",b/a,s/(a=g(b*=a*c,s)),s=g(b*(c-a),a*(c-b)));}