import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String s = scan.next(); scan.close(); int l = s.length(); int x = 0; int y = 0; int a = 0; if(s.charAt(0) == '-') { a = 1; } char c2 = '+'; int b = 0; for(int i = a; i < l; i++) { if(s.charAt(i) == '-' || s.charAt(i) == '+') { x = Integer.parseInt(s.substring(a, i)); if(s.charAt(i+1) == '+') { b = i; c2 = s.charAt(i); y = -Integer.parseInt(s.substring(b + 2, l)); break; } b = i; c2 = s.charAt(i); y = Integer.parseInt(s.substring(b + 1, l)); break; } } if(a == 1) { x = - x; } if(c2 == '+') { System.out.println(x - y); }else { System.out.println(x + y); } } }