1801 - reverse number   

Description

輸入一個由 1~9 (不包含 0) 組成的 3 位數,例如 789。

將這個數字順序顛倒 (789 ­> 987),
然後將兩個數目相加 (789+987),
輸出總和 1776。

Input

由 1~9 (不包含 0) 組成的 3 位數

Output

顛倒相加的總和 

Sample Input  Download

Sample Output  Download

Tags




Discuss