#include <stdio.h>
int main()
{
int n, i, j, sum, k;
sum = 1;
while (scanf("%d", &n) != EOF)
{
for (k = 0; k < n; k++)
{
scanf("%d", &j);
if (j % 2 != 1) //判断是否为奇数
sum *= j;
/* code */
}
printf("%d\n", sum);
sum = 1;
}
return 0;
}