while 1: \x09f,g=n,d=map(int,raw_input().split("/")) \x09while f:f,g=g%f,f \x09print`n/g`+"/"+`d/g`
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page