#include <stdio.h>

int main(void){

    /********** Multiplication 1*******************
    int A ,B;
    scanf("%d %d",&A,&B);
    printf("%d", (A*B));
    return 0;
    ***********************************************/

    /********** Multiplicarion 2*******************/
    int N;
    int result = 1;
    scanf("%d",&N);
    int A[N];
    for (int i = 0; i < N; i++)
    {
        scanf("%d", &A[i]);
        result = result * A[i] ;
    }
    printf("%d",result);
    
    /*************************************************/
}