import java.util.ArrayDeque; import java.util.Arrays; import java.util.Scanner; class Main { public static void main(String[] args) throws Exception { new Main().run(); } void run() { Scanner sc=new Scanner(System.in); char[] cs=sc.next().toCharArray(); int u=0,v=0; int su=1,sv=1; int p=0; if(cs[p]=='-') { ++p; su*=-1; }else if(cs[p]=='+')++p; while((int)(cs[p]-'0')>=0&&9>=(int)(cs[p]-'0')) { u=10*u+(int)(cs[p]-'0'); ++p; } if(cs[p]=='+') { sv*=-1; ++p; }else if(cs[p]=='-'){ ++p; }else { throw new AssertionError(); } if(cs[p]=='-') { ++p; sv*=-1; }else if(cs[p]=='+'){ ++p; } while(p=0&&9>=cs[p]-'0') { v=10*v+(int)(cs[p]-'0'); ++p; } System.out.println(su*u+sv*v); } static void tr(Object... objects) { System.out.println(Arrays.deepToString(objects)); } }