@@ -24,3 +24,11 @@ def f(i,s,S = None):
e = '%s%s%s'%(c,a,d)
S.append(eval(e))
return f(i+1,s,S)
+
+x = raw_input()
+s = ""
+while x != '=\n':
+ s += x
+ x = raw_input() + '\n'
+print f(0,toList(s))