import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner cin = new Scanner(System.in); while(cin.hasNext()) { int n=cin.nextInt(); int result=1; for(int i=1;i<=n;i++) { int x=cin.nextInt(); if(x%2!=0) result*=x; } System.out.println(result); } } }