ZBROJ | 프로그래밍의 벗 PivotOJ
PivotOJ

ZBROJ

시간 제한: 1000ms메모리 제한: 128MB출처: CHC 2007 Regional Competition - SeniorsBOJ 8949

문제

Young Borko's mother is making him work on his arithmetic. In spite of the large amount of time he spends pretending to be practicing, he still can't quite manage addition. 

Borko is aware that he has to add one digit at a time from right to left, but he's too lazy to "carry over" so he always immediately adds the sum of two digits to the left of the result. 

For example, he adds the numbers 123 and 2495 like this: 

       1  2  3
 +  2  4  9  5
----------------
    2  5 11  8

When he reads the result, he gets 25118. 

You are given two numbers which Borko is to add. Write a program that determines the result he will get. 

입력

The first and only line of input contains two integers A and B separated by a space, the numbers Borko is trying to add. Both numbers will be between 1 and 1 000 000. 

출력

Output the "sum" Borko gets. 

예제

예제 1

입력
512 444
출력
956

예제 2

입력
123 2495
출력
25118

예제 3

입력
99999 99999
출력
1818181818
코드를 제출하려면 로그인하세요.