for(int n:stdin)write(string(n)+" = 6 * "+format(n%6<2?"%.f + 1":"%.f - 1",n/6));
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page