import java.util.Scanner; public class Yukicoder49 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); String[] a = s.split("[*+]"); String sign = s.replaceAll("[1-9]", ""); int res; res = Integer.parseInt(a[0]); for (int i = 1; i < a.length; i++) { if (sign.charAt(i - 1) == '*') res += Integer.parseInt(a[i]); else if (sign.charAt(i - 1) == '+') res *= Integer.parseInt(a[i]); } System.out.println(res); } }