Int main ()
{
Int a, b, sum=0;
The scanf (" % d ", & a);
Int h [a] m [a];
for(int i=0; I {
The scanf (" % d ", & h [I]);
}
M [0]=h [0];
Int Max=m [0];
for(int i=1; I {
If (m] [I - 1> 0)
M=[I] m [I - 1) + h [I];
The else
[I] m [I]=h;
If (m> Max [I])
Max=m [I];
}
Printf (" % d ", Max);
}