We’re preparing your current view and syncing the latest data.
You are given three numbers a, b and c. You are allowed to insert plus (+) and multiply (*) operators and parentheses in any order to get the maximum possible value of the expression formed by these three numbers. The goal is to find this maximum possible value.
The input consists of a single line containing three integers a, b, and c (1 ≤ a, b, c ≤ 10).
Print the maximum possible value obtained by inserting plus and multiply operators and parentheses.
1 ≤ a, b, c ≤ 10
Example 1
Input
1 2 3
Output
9
Explanation
The maximum value is achieved by (1 + 2) * 3 = 9.