n,d,s="%d/%d\n";main(m){for(;~scanf(s,&n,&d);printf(s+m/d*3,n/m,d/m))for(m=n;n%m+d%m;m--);}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page