代码:
#include <stdio.h>
int main()
{
int n,t,result;
while (scanf("%d", &n)!=0)
{
result = 1;
for (int i = 0; i < n; ++i)
{
scanf ("%d", &t);
if (((t % 2) != 0) && (t != 0))
result *= t;
}
printf("%d\n", result);
}
return 0;
}