#include<stdio.h>
int main(){
int n,i,t,sum;
while(~scanf("%d",&n)){
sum=1;
for(i=1;i<=n;i++){
scanf("%d",&t);
if(t%2){
sum*=t;
}
}
printf("%d\n",sum);
}
return 0;
}
2023-11-03 13:08:34
#include<stdio.h>
int main(){
int n,i,t,sum;
while(~scanf("%d",&n)){
sum=1;
for(i=1;i<=n;i++){
scanf("%d",&t);
if(t%2){
sum*=t;
}
}
printf("%d\n",sum);
}
return 0;
}