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