func main() var s: []char :: cui@input() var lastOp: char :: '*' var num: int :: 0 var ans: int :: 0 for i(0, ^s) if(i = ^s | s[i] = '*' | s[i] = '+') if(lastOp = '*') do ans :+ num else do ans :* num end if if(i <> ^s) do lastOp :: s[i] do num :: 0 end if else do num :* 10 do num :+ [s[i]].toInt(&) end if end for do cui@print("\{ans}\n") end func