while 1: a,b,_=input().split("0") if"+"in b:print("S"*(a.count("S")+b.count("S"))+"0") if"*"in b:print("S"*(a.count("S")*b.count("S"))+"0")
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page