while 1:S='mysterious';t=input();exec(S+"=0;print(S*(S in t.split(' + '))or %s)"%t)