#A0040. A+B=B
A+B=B
Topic Background
I believe this question can help parents understand why addition in elementary school is very difficult.
Title Description
33DAI cannot write Arabic numerals, so he developed a new decimal notation.
33DAI assigns the uppercase letters' ABCDEFGHIJ 'to the numbers' 0123456789'.
From this, we can obtain a very strange addition result. For example, 'A+A=A', 'A+B=B', 'B+B=C', 'E+F=J', and 'F+F=BA' correspond to: '0+0=0', '0+1=1', '1+1=2', '4+5=9', and '5+5=10', respectively.
Now let me give you two numbers in this new representation. Please calculate the sum of them and output them using this new representation as well.
Input format
Enter two uppercase English characters separated by spaces:
Output format
Output the result of their addition.
A A
A
A B
B
F F
BA
F G
BB
J J
BI
Data scale and agreement
For data of , ensure that are both characters in 'ABCDEFGHIJ'.
-Subtask 1 (30 points): Ensure that is' A '. -Subtask 2 (30 points): Ensure that the result of is a single digit. -Subtask 3 (30 points): No special restrictions.