b,e,s=map(int,raw_input().split()) v=b*s exec'n,d=v,s\nfor f in[2,3,7,19]*4:\n if n%f+d%f<1:n/=f;d/=f\nprint`n`+"/%i"%d*(d>1),;v+=e-b;'*-~s