import java.util.*;
class Test {
public static void main(String[]args) {
Scanner reader=new Scanner(System.in);
int product=1;
while(reader.hasNextInt()) {
int x=reader.nextInt();
product=product*x;
}
System.out.println(product);
}
}