for s in open(0):m='mysterious';s=[('*'in x)-1if m in x else eval(x)for x in s.split("+")];print(m*-min(s)or sum(s))
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page