188B.md (705B)
1 Source: https://codeforces.com/problemset/problem/188/B 2 3 B. A + Reverse B 4 5 time limit per test 6 7 2 seconds 8 9 memory limit per test 10 11 256 megabytes 12 13 input 14 15 stdin 16 17 output 18 19 stdout 20 21 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. 22 23 Input 24 25 The input contains two integers *a* and *b* (0 ≤ *a*, *b* ≤ 109), separated by a single space. The numbers are given without leading zeros. 26 27 Output 28 29 Output the sum of *a* and reverse of *b*. 30 31 Examples 32 33 Input 34 35 ``` 36 5 15 37 ``` 38 39 Output 40 41 ``` 42 56 43 ``` 44 45 Input 46 47 ``` 48 73 9180 49 ``` 50 51 Output 52 53 ``` 54 892 55 ```