#include int main() { long N,A[110]={0},max=0,X; scanf("%ld",&N); for(long i=0;imax) max=A[i]+A[i+1]; printf("%ld",max); return 0; }