for(int i,x,z,n[]=stdin,y=n[2];i<=y;++i,write(string(x/z),y>z?format("/%f ",y/z):" ",none))for(z=y,x=n[0]*y+(n[1]-n[0])*i;x%z+y%z>0;--z);