import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; class Main { static PrintWriter out = new PrintWriter(System.out); static String str; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); br.close(); int len = str.length(); String result = ""; boolean flag = false; int point = 0; for (int i = 0; i < len; i++) { if (str.charAt(i) == '+') { result += "-"; if (flag) { flag = false; point = result.length(); } } else if (str.charAt(i) == '-') { if (flag) { result += "+"; flag = false; point = result.length(); } else { } } else { result += str.substring(i, i + 1); if (point == 0) { flag = true; } } } if (str.indexOf("+") > 0) { System.out.println( Integer.parseInt(result.substring(0, point-1)) + Integer.parseInt(result.substring(point))); } else { System.out.println( Integer.parseInt(result.substring(0, point-1)) - Integer.parseInt(result.substring(point))); } } }