a,b,c=io.read(2,'*n',3)for i=a*c,b*c,b-a do j=i while i%j+c%j>0 do j=j-1 end io.write(i/j..(c+0>j and"/"..c/j or"")," ")end