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=Integer.MIN_VALUE; for(int j=0; j='0'&&a<='9'&&z>='0'&&z<='9'){ int num = cal(t); max=Math.max(max,num); } } System.out.println(max); } static int cal(String S){ String [] integer = S.split("[+-]"); int N = integer.length; int [] z = new int [N]; for(int i=0; i