import java.util.*; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); char[] arr = sc.next().toCharArray(); int tmp = 0; int ans = 0; char op = '*'; for (char c : arr) { if (c == '+' || c == '*') { if (op == '+') { ans *= tmp; } else { ans += tmp; } op = c; tmp = 0; } else { tmp = tmp * 10 + (c - '0'); } } if (op == '+') { ans *= tmp; } else { ans += tmp; } System.out.println(ans); } }