// HDOJ 2006 求奇数的成绩// @author: bos// @date: 2012.2.16#includeint main(){ int n; int a[100000]; int result; while (scanf("%d", &n)!= EOF) { int i; result= 1; for (i= 0; i< n; i++) { scanf("%d", &a[i]); if(a[i]% 2!= 0) result*= a[i]; } printf("%d\n", result); } return 0;}