#include<stdio.h> #include<stdlib.h> int main() { int n; int count; int * Num = NULL; int product; while(scanf("%d",&n)!=EOF) { Num = (int *)malloc(n*sizeof(int)); if(NULL == Num) { exit(1); } product =1; for(count=0;count<n;count++) { scanf("%d",Num+count); } for(count=0;count<n;count++) { if(*(Num+count)%2 == 1) { product *= *(Num+count); } } printf("%d\n",product); free(Num); } return 0; }