#include<stdio.h>

int main(void)
{
	unsigned long long int a, b, c = 1;
	int i;

	scanf("%lld", &a);

	for (i = 0; i < a; i++) {
		scanf("%lld", &b);
		c = c * b;
	}

	printf("%lld", c);

	return 0;
}