#include<bits/stdc++.h>
using namespace std;
int main(){
long int n;
long int sum=0;
vector<long int>v(n);
for(int i=0;i<n;i++)
cin>>v[i];
for(int i=0;i<n;i++){
if(v[i]%2==1)
sum+=v[i];
}
cout<<sum<<"\n";
return 0;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKaW50IG1haW4oKXsKICAgICBsb25nIGludCBuOwogICAgIGxvbmcgaW50IHN1bT0wOwogICAgIHZlY3Rvcjxsb25nIGludD52KG4pOwogICAgIGZvcihpbnQgaT0wO2k8bjtpKyspCiAgICAgICAgICBjaW4+PnZbaV07CiAgICBmb3IoaW50IGk9MDtpPG47aSsrKXsKICAgICAgICBpZih2W2ldJTI9PTEpCiAgICAgICAgc3VtKz12W2ldOwogICAgfQogICAgICAgICBjb3V0PDxzdW08PCJcbiI7CiAgICAgICAgIHJldHVybiAwOwp9