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