import java.util.Scanner; public class Yuki222{ public static void main(String[] arg){ Scanner sc = new Scanner(System.in); int x,y,res=0,i=0; String s; boolean plus=false; s = sc.next(); if(s.charAt(i) == '-'){ i++; x = (-1)*value(s,i); while('0'<= s.charAt(i) && s.charAt(i) <= '9')i++; if(s.charAt(i) == '+')plus = true; i++; if(s.charAt(i) == '-'){ y = (-1)*value(s,i+1); }else{ y = value(s,i); } }else{ x = value(s,i); while('0'<= s.charAt(i) && s.charAt(i) <= '9')i++; if(s.charAt(i) == '+')plus = true; i++; if(s.charAt(i) == '-'){ y = (-1)*value(s,i+1); }else{ y = value(s,i); } } if(plus){ res = x - y; }else{ res = x + y; } System.out.println(res); } public static int value(String s,int i){ int temp = 0; if(s.charAt(i) == '+')i++; while(i