This page is still under construction.

Parts of this page are still being built. What you see may change.

Big number A+B

Time limit1sMemory limit256 MB

Summary
Read two integers with up to 10000 digits and print their sum without leading zeros.
Level

Easy2 of 10

Topics
String, Math, Implementation, Simulation
Solved
No attempts yet

Problem

Write a program that reads two integers A and B and prints A+B. A and B are large enough that they do not fit in a 64-bit integer.

Input

The first line contains A and B, separated by a single space. (0<A,B<10100000 < A, B < 10^{10000})

Output

Print A+B on the first line. Do not print leading zeros.

Examples4

  1. Example 1

    Input
    9223372036854775807 9223372036854775808
    
    Expected output
    18446744073709551615
    
  2. Example 2

    Input
    1 1
    
    Expected output
    2
    
  3. Example 3

    Input
    5 7
    
    Expected output
    12
    
  4. Example 4

    Input
    123456789 987654321
    Expected output
    1111111110