#C12112. Product of Array Elements Except the First

    ID: 41504 Type: Default 1000ms 256MiB

Product of Array Elements Except the First

Product of Array Elements Except the First

You are given a list of integers. Your task is to compute the product of all the elements of the array except the first element. In other words, if the array is \(a_1, a_2, \dots, a_n\), you need to calculate \(a_2 \times a_3 \times \cdots \times a_n\). If the array has only one element, then the answer is defined to be 0.

Note: The mathematical expression for the product is given by:

[ \prod_{i=2}^{n} a_i ]

Be sure to read the input from stdin and write your output to stdout.

inputFormat

The input consists of two lines. The first line contains a single integer \(N\) (\(1 \leq N \leq 10^5\)) representing the number of elements in the array. The second line contains \(N\) space-separated integers, which are the elements of the array.

outputFormat

Output a single integer, which is the product of all array elements except the first. If the array contains only one element, output 0.

## sample
4
3 2 5 6
60