You are tasked with determining the maximum allowance that can be given to your child based on the outcome of a simple game. The game works as follows:
There are three integer panels, each displaying a digit between 1 and 9 (inclusive).
There is also one operator panel with a + sign.
The player must create a formula in the form of X + Y by arranging the four panels from left to right, ensuring that the operator panel is not at either end.
Your goal is to calculate the maximum possible allowance based on the formulas that can be created using the digits on the integer panels.
Input Format
Three integers ( A, B, C ) (1 ≤ ( A, B, C ) ≤ 9) representing the values on the integer panels.
Output Format
Return a single integer which is the maximum allowance possible.
Example
Input
text
A = 2
B = 3
C = 5
Output
text
8
Explanation
The possible combinations for the formula X + Y are:
2 + 3
2 + 5
3 + 2
3 + 5
5 + 2
5 + 3
The maximum value obtained is from 3 + 5, which equals 8.
Constraints
The values of ( A, B, C ) will always be between 1 and 9 inclusive.
Implementation
You should implement your solution in the /app/ directory. Ensure your code is well-documented and adheres to good coding practices.
Important: place your implementation at /app/solution.py so the verifier can run it.