import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.next(); String [] arr = S.split(""); int L = S.length(); int max=0; for(int j=0; j='0' && t.charAt(0)<='9' && t.charAt(L-1)>='0' && t.charAt(L-1)<='9'){ int z = cal(t); max=Math.max(max,z); } } System.out.println(max); } static int cal(String S){ String [] integer = S.split("[+-]"); int a = S.indexOf("+"); if(a==-1){a=10;} int b = S.indexOf("-"); if(b==-1){b=10;} int m = Math.min(a,b); S=S.substring(m); String [] sign = S.split("[0-9]"); int N = integer.length; int [] z = new int [N]; for(int i=0; i