{"trustable":false,"prependHtml":"\u003cstyle type\u003d\u0027text/css\u0027\u003e\n .input, .output {\n border: 1px solid #888888;\n }\n .output {\n margin-bottom: 1em;\n position: relative;\n top: -1px;\n }\n .output pre, .input pre {\n background-color: #EFEFEF;\n line-height: 1.25em;\n margin: 0;\n padding: 0.25em;\n }\n \u003c/style\u003e\n \u003clink rel\u003d\"stylesheet\" href\u003d\"//codeforces.org/s/96598/css/problem-statement.css\" type\u003d\"text/css\" /\u003e\n\u003cscript\u003e\n window.katexOptions \u003d {\n delimiters: [\n {left: \u0027$$$$$$\u0027, right: \u0027$$$$$$\u0027, display: true},\n {left: \u0027$$$\u0027, right: \u0027$$$\u0027, display: false},\n {left: \u0027$$\u0027, right: \u0027$$\u0027, display: true},\n {left: \u0027$\u0027, right: \u0027$\u0027, display: false}\n ]\n };\n\u003c/script\u003e\n","sections":[{"title":"","value":{"format":"HTML","content":"As you remember from the previous tasks of challenge, Adina likes to create interesting problems. She wrote three positive integers a, b, c. Students had to insert signs \u0027+\u0027 and \u0027*\u0027 and brackets, if they were needed between the numbers so that the value of the resulting expression is as large as possible. For example, students had three numbers: 1, 2 and 3. There are several ways to insert signs and brackets:\n\u003cp\u003e1+2*3\u003d7\u003c/p\u003e\n\u003cp\u003e1*(2+3)\u003d5\u003c/p\u003e\n\u003cp\u003e 1*2*3\u003d6 \u003c/p\u003e\n\u003cp\u003e (1+2)*3\u003d9 \u003c/p\u003e\nStudents could insert signs only between a and b, and between b and c. They couldn\u0027t swap numbers. In the given example students couldn\u0027t get expression (1+3)*2. The maximum value of the given example was 9.\nNow you have this task. You should find the maximum value that you can get from a, b, c.\n\nYou have to solve this problem using recursion. If you don\u0027t use it, we can\u0027t add points for this task. "}},{"title":"Input","value":{"format":"HTML","content":"The first line includes three integers a, b and c, each on a single line (1 ≤ a, b, c ≤ 10)."}},{"title":"Output","value":{"format":"HTML","content":"Print the maximum value of the expression that you can obtain."}},{"title":"Examples","value":{"format":"HTML","content":"\u003cdiv class\u003d\"sample-test\"\u003e \n \u003cdiv class\u003d\"input\"\u003e \n \u003cdiv class\u003d\"title\"\u003e\n Input\n \u003c/div\u003e \n \u003cpre\u003e1\u003cbr\u003e2\u003cbr\u003e3\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e \n \u003cdiv class\u003d\"output\"\u003e \n \u003cdiv class\u003d\"title\"\u003e\n Output\n \u003c/div\u003e \n \u003cpre\u003e9\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e \n \u003cdiv class\u003d\"input\"\u003e \n \u003cdiv class\u003d\"title\"\u003e\n Input\n \u003c/div\u003e \n \u003cpre\u003e2\u003cbr\u003e10\u003cbr\u003e3\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e \n \u003cdiv class\u003d\"output\"\u003e \n \u003cdiv class\u003d\"title\"\u003e\n Output\n \u003c/div\u003e \n \u003cpre\u003e60\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n\u003c/div\u003e"}}]}