Preparando MOJI

A + Reverse B

2000ms 262144K

Description:

You are given numbers a and b. Calculate the sum of a and reverse of b. A reverse of a number is a number which contains the same digits in reverse order. For example, reverse of 230 is 32, and reverse of 0 is 0.

Input:

The input contains two integers a and b (0 ≤ a, b ≤ 109), separated by a single space. The numbers are given without leading zeros.

Output:

Output the sum of a and reverse of b.

Sample Input:

5 15

Sample Output:

56

Sample Input:

73 9180

Sample Output:

892

Informação

Codeforces

Provedor Codeforces

Código CF188B

Tags

*specialimplementation

Submetido 0

BOUA! 0

Taxa de BOUA's 0%

Datas 09/05/2023 08:37:07

Relacionados

Nada ainda