求奇数的乘积_#include

#include <iostream>
#include <cstdio>
#include <cmath>
using namespace std;

int main()
{
	int n, a, sum;
	
	while(~scanf("%d", &n))
	{
		sum = 1;
		while(n --)
		{
			scanf("%d", &a);
			if(a % 2 == 1)
			{
				sum *= a;
			}
		}
		printf("%d\n", sum);
	}
	
	return 0;
}