#include <stdio.h>int main(){ int i,n,sum; while(scanf("%d",&n)!=EOF) { sum=1; while(n--) { scanf("%d",&i); if(i%2==1) { sum*=i; } } printf("%d ",sum); } return 0;
}