AtCoder Beginner Contest 110
翻译中…
Problem Statement
翻译中…
You have decided to give an allowance to your child depending on the outcome of the game that he will play now.
翻译中…
The game is played as follows:
翻译中…
- There are three "integer panels", each with a digit between
$1$and$9$(inclusive) printed on it, and one "operator panel" with a+printed on it. - The player should construct a formula of the form
$X + Y$, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) - Then, the amount of the allowance will be equal to the resulting value of the formula.
翻译中…
Given the values $A, B$ and $C$ printed on the integer panels used in the game, find the maximum possible amount of the allowance.
翻译中…
Constraints
翻译中…
- All values in input are integers.
$1 \leq A, B, C \leq 9$
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
A B C
翻译中…
Output
翻译中…
Print the maximum possible amount of the allowance.
翻译中…
样例
Input #1
1 5 2
Output #1
53
The amount of the allowance will be $53$ when the panels are arranged as `52+1`, and this is the maximum possible amount.
Input #2
9 9 9
Output #2
108
Input #3
6 6 7
Output #3
82
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。