Reduce fractions FIXED by twobit

while 1:
\x09x,y=a,b=map(int,raw_input().split("/"))
\x09while x:x,y=y%x,x
\x09print`a/y`+"/"+`b/y`

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top