Problem Description

Read n values (each is int or float with dot). If all are integers, output PRODUCT as integer. Otherwise output SUM as float with 2 decimals.

Input Format

First line n. Second line n values.

Output Format

One number output.

Sample Test Case

Input:
3 2 3 4
Output:
24

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next