LearnPy Hub
← Arena
EasyRating 1000

Biggest Expression

Put + and × between three numbers a, b, c (in this order) and add brackets anywhere. Print the largest result possible.

Input

Three integers (1 ≤ each ≤ 10).

Output

One integer.

Sample 1

Input
1
2
3
Output
9

Sample 2

Input
2
10
3
Output
60
solution.py
Output appears here
Biggest Expression · Python Arena problem · LearnPy Hub