#include #include #include int main(void){ int a,b,c; char s[50]; char s1[50]=""; std::string s2; int total,cnt; int max=-100000000; std::cin>>s; for(int i=0; i='0' && s1[b]<='9'){ s2+=s1[b]; b++; } b--; total= std::atoi(s2.c_str()); s2=""; for(int k=b; k='0' && s1[k]<='9'){ s2+=s1[k]; k++; } k--; c=std::atoi(s2.c_str()); s2=""; total+=c; } else if(s1[k]=='-'){ k++; while(s1[k]>='0' && s1[k]<='9'){ s2+=s1[k]; k++; } k--; c=std::atoi(s2.c_str()); s2=""; total-=c; } } max=std::max(max,total); } } std::cout<