#include <stdio.h>
int main(){
int my_sum=0;
int num;
while (scanf("%d",&num)!=0 && num>0){
if (num%2==1){my_sum+=num;}
}
printf("%d",my_sum);
return 0;
}
#include <stdio.h>
int main(){
int my_sum=0;
int num;
while (scanf("%d",&num)!=0 && num>0){
if (num%2==1){my_sum+=num;}
}
printf("%d",my_sum);
return 0;
}