#include <stdio.h>
int main()
{
int a[1000],n,s,i;
while(scanf("%d",&n)!=EOF)
{s=1;
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
if(a[i]%2!=0)
s=s*a[i];
}
printf("%d\n",s);
}
return 0;
}
int main()
{
int a[1000],n,s,i;
while(scanf("%d",&n)!=EOF)
{s=1;
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
if(a[i]%2!=0)
s=s*a[i];
}
printf("%d\n",s);
}
return 0;
}