// SIGMA BOY hihihihihihihi
#define se second
#define fi first
#define pb push_back
#define pob pop_back
#define bitebi __builtin_popcountll
#include <bits/stdc++.h>
using namespace std ;
typedef long long ll;
typedef long double ld;
typedef pair<ll,ll> pll;
typedef pair<ll,int> pli;
typedef pair<int,int> pii;
const ll Mod = 1e9+7;
const ll Maxn = 1e5+69;
const ll oo = 1e18;
ll Min[2] = {0,oo} , n , x , cur = 0 , res = -oo;
void Do()
{
cin >> n ;
for ( int i = 1 ; i <= n ; ++i)
{
cin >> x;
cur += x;
if(Min[abs(cur)%2]!=oo) res = max(res, cur - Min[abs(cur)%2]);
Min[abs(cur)%2] = min(Min[abs(cur)%2],cur);
}
if(res==oo) cout << "NOT_FOUND";
else cout << res;
}
signed main ()
{
ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
#define task "test"
if(fopen(task".inp", "r")){
freopen(task".inp", "r", stdin);
freopen(task".out", "w", stdout);
}
int ntest=1;
while(ntest--) Do();
cerr<<"\nTime elapsed: "<<1000*clock()/CLOCKS_PER_SEC<<"ms\n";
}
Ly8gU0lHTUEgQk9ZIGhpaGloaWhpaGloaWhpCgojZGVmaW5lIHNlIHNlY29uZAojZGVmaW5lIGZpIGZpcnN0CiNkZWZpbmUgcGIgcHVzaF9iYWNrCiNkZWZpbmUgcG9iIHBvcF9iYWNrCiNkZWZpbmUgYml0ZWJpIF9fYnVpbHRpbl9wb3Bjb3VudGxsCiNpbmNsdWRlIDxiaXRzL3N0ZGMrKy5oPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZCA7CnR5cGVkZWYgbG9uZyBsb25nIGxsOwp0eXBlZGVmIGxvbmcgZG91YmxlIGxkOwp0eXBlZGVmIHBhaXI8bGwsbGw+IHBsbDsKdHlwZWRlZiBwYWlyPGxsLGludD4gcGxpOwp0eXBlZGVmIHBhaXI8aW50LGludD4gcGlpOwpjb25zdCBsbCBNb2QgPSAxZTkrNzsKY29uc3QgbGwgTWF4biA9IDFlNSs2OTsKY29uc3Qgb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