SDE Path

Product of an Array

Easy

Product of an Array

Multiply all elements of a small array together.

Input format

The first line contains N. The second line contains N small integers.

Output format

Print the product of all elements of the array.

Constraints

  • Values fit in a 64-bit signed integer
  • Trailing whitespace and a trailing newline are ignored by the judge

Read from stdin, write to stdout. Sample cases below show the exact format.

Sample cases

Example 1
Input
4
1 2 3 4
Expected output
24
Example 2
Input
3
2 5 10
Expected output
100