package yukicoder; import java.util.Scanner; public class N49 { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String eq = sc.nextLine(); int op = 0; int left_op = 0; int right_op = 0; int result = 0; int flag = 0; for(int i = 0;i < eq.length() + 1;++i){ if(i == eq.length()){ if(op == 1){ left_op += right_op; }else if(op == 2){ left_op *= right_op; } right_op = 0; break; }else if(eq.charAt(i) == 42){ if(op == 1){ left_op += right_op; }else if(op == 2){ left_op *= right_op; } right_op = 0; op = 1; //たしざん }else if(eq.charAt(i) == 43){ if(flag == 0){ result = 1; flag = 1; } if(op == 1){ left_op += right_op; }else if(op == 2){ left_op *= right_op; } right_op = 0; op = 2; //かけざん }else if(op == 0){ left_op *= 10; left_op += eq.charAt(i) - 48; }else{ right_op *= 10; right_op += eq.charAt(i) - 48; } } System.out.println(left_op); } }