(a,b,c)="$System.in".split()*.toLong() n=a*c*1g;0.upto(c){g=n.gcd(c);print n/g+0+(c-g?"/${c/g} ":" ");n+=b-a}