System.in.eachLine{(a,b)=(it=~/\d+/)*.toLong() g=(a+0g).gcd b println a/g+"/"+b/g}