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