#include
using namespace std;
int main()
{
int total=1,n;
while(cin>>n)
{
total=1;
int *p=new int[n];
int *d=p;
for(int i=0;i<n;i++,p++)
{
cin>>*p;
if(*p%2==1)
{
total*=(*p);
}
}
cout<<total<<endl;
delete[] d;
}
}
#include
using namespace std;
int main()
{
int total=1,n;
while(cin>>n)
{
total=1;
int *p=new int[n];
int *d=p;
for(int i=0;i<n;i++,p++)
{
cin>>*p;
if(*p%2==1)
{
total*=(*p);
}
}
cout<<total<<endl;
delete[] d;
}
}