
The group stage of the World Cup has ended, the teams are ready for the knockout stage, and many experts are trying to figure out the next world champion. One of them is Boris, the man who correctly determined the last four world champions.
Lower the chances of this team because they have a player from Barcelona, raise the chances of that team because they have the captain of Real Madrid... - Boris is calculating - Now I only need to multiply the integers
The audience suddenly got very quiet. They are impatiently waiting to know if Croatia is going to win.
Boris will multiply
He has four registers:
He doesn't want the audience to wait too long, so he can make at most
Help him determine the operations he needs to do and in which of the registers will the final result be stored.
Input Specification
The first and only line contains positive integers
Output Specification
In the first line, output the integer
In the R1 R2 R3
, where A
, B
, C
, or D
), and the operation means the sum of
Finally, output a single line with the register (A
, B
, C
, or D
) where the final result is stored.
If there are multiple correct solutions, output any of them. The solution doesn't need to have the minimal number of operations.
Constraints
Subtask | Points | Constraints |
---|---|---|
No additional constraints. |
Sample Input 1
1 2
Sample Output 1
1
A A A
A
Explanation for Sample Output 1
The values of the registers
A A A
The product of
Sample Input 2
3 2
Sample Output 2
6
D C C
D C C
D C C
D C C
D C C
D C C
C
Explanation for Sample Output 2
The values of the registers
D C C
D C C
D C C
D C C
D C C
D C C
The product of
Comments