LearnPy Hub
← Arena
IntermediateRating 1100

Largest Product

Print the largest product of two different elements (values may be negative).

Input

n ≥ 2, then n integers.

Output

A number.

Sample 1

Input
4
1 10 -5 3
Output
30

Sample 2

Input
2
-4 -3
Output
12
solution.py
Output appears here
Largest Product · Python Arena problem · LearnPy Hub