import java.util.Scanner;

public class S7_06 {
	static int ans;
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		while (true) {
			int n = sc.nextInt();
			if (n <= 0) break;
			if (n % 2 != 0) ans += n;
		}
		System.out.println(ans);
	}
}
#include<iostream>
using namespace std;
int main(){
	int sum,n;
	sum=0;
	cin>>n;
	while(n>0){
		if(n%2==1) sum+=n;
		cin>>n;
	}
	cout<<sum;
	
	return 0;
}