#include<iostream>
#include<algorithm>
using namespace std;
long long int a[10000000];
int main()
{
ios::sync_with_stdio(false);
long long int n,sum=0;
long long int i,j,key;
cin>>n;
for(i=0;i<n;i++)
cin>>a[i];
/* for(i=1;i<n;i++)
{
j=i-1;
key=a[i];
while(j>=0&&a[j]<key)
{
a[j+1]=a[j];
j--;
}
a[j+1]=key;
}*/
sort(a,a+n,greater<int>());
for(i=0;i<n;i++)
{
sum=sum+a[i];
}
if(sum%2==0)
cout<<sum;
else
{
while(sum%2!=0)
{
i=n-1;
sum=sum-a[i];
i--;
if(i<0)
break;
}
cout<<sum;
}
return 0;
}
I2luY2x1ZGU8aW9zdHJlYW0+CiNpbmNsdWRlPGFsZ29yaXRobT4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKbG9uZyBsb25nIGludCBhWzEwMDAwMDAwXTsKaW50IG1haW4oKQogewogCWlvczo6c3luY193aXRoX3N0ZGlvKGZhbHNlKTsKIAlsb25nIGxvbmcgaW50IG4sc3VtPTA7CiAJbG9uZyBsb25nIGludCBpLGosa2V5OwogCWNpbj4+bjsKIAlmb3IoaT0wO2k8bjtpKyspCiAJY2luPj5hW2ldOwogLyoJZm9yKGk9MTtpPG47aSsrKQogCXsKIAkgaj1pLTE7Cgkga2V5PWFbaV07CgkgIHdoaWxlKGo+PTAmJmFbal08a2V5KQoJICAgICB7CgkgICAgICBhW2orMV09YVtqXTsKCQkgIGotLTsJCgkJIH0JCgkJIGFbaisxXT1rZXk7CgkgfSovCgkgc29ydChhLGErbixncmVhdGVyPGludD4oKSk7CgkgZm9yKGk9MDtpPG47aSsrKQoJIHsKCSBzdW09c3VtK2FbaV07CQoJIH0KCSBpZihzdW0lMj09MCkKCSBjb3V0PDxzdW07CgkgZWxzZQoJIHsKCSAJd2hpbGUoc3VtJTIhPTApCgkgCSAgeyAKCSAJICAgaT1uLTE7CgkgCSAgIHN1bT1zdW0tYVtpXTsKCQkgICBpLS07CgkJICAgaWYoaTwwKQoJCSAgIGJyZWFrOyAgCQoJCSAgfQoJCSAgY291dDw8c3VtOwoJIH0KCSByZXR1cm4gMDsKIH0=