using System; using System.Collections; using System.Collections.Generic; class TEST{ static void Main(){ Sol mySol =new Sol(); mySol.Solve(); } } class Sol{ public void Solve(){ long max=0; bool chk=false; String SS=S+S; for(int i=0;i='0'){ buf+=t[i].ToString(); } if(t[i]=='+'){ tot+=sig*long.Parse(buf); buf="0"; sig=1; } if(t[i]=='-'){ tot+=sig*long.Parse(buf); buf="0"; sig=-1; } } tot+=sig*long.Parse(buf); buf="0"; sig=-1; return tot; } String S; public Sol(){ S=rs(); } static String rs(){return Console.ReadLine();} static int ri(){return int.Parse(Console.ReadLine());} static long rl(){return long.Parse(Console.ReadLine());} static double rd(){return double.Parse(Console.ReadLine());} static String[] rsa(){return Console.ReadLine().Split(' ');} static int[] ria(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>int.Parse(e));} static long[] rla(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>long.Parse(e));} static double[] rda(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>double.Parse(e));} }