cho.sh
Notes
Loading...

Reversed Addition

Time limit

2s

Memory limit

128 MB

Problem

For a positive integer X, define Rev(X) as the integer obtained by reading the decimal digits of X in reverse order. Any leading zeroes created by the reversal are discarded. For instance, Rev(123) is 321, and Rev(100) is 1.

Given two positive integers X and Y, compute Rev(Rev(X) + Rev(Y)).

Input

The first line contains two integers X and Y. Both X and Y are natural numbers no greater than 1,000.

Output

Print the answer on the first line.