function main(input) {
    const args = input.split("\n");
    let N = +args[0].shift();
    let A = args[1].split(" ").map(x => +x);
    const reducer = (accumulator, currentValue) => accumulator * currentValue;
    console.log(A.reduce(reducer))
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));