def r(d,x,y):q=x*y-s;q<1>q%d!=[r(d*10,x+w//3*d,y+w%3*d+d)for w in range(12-9*(3*x<y))]!=q>-1<y-x!=print(x,'*',y) while 1:s=int(input());r(1,0,0)
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page