Under construction

Still being built. Things may change

Big Integer Addition

Interview

Time limit1sMemory limit256 MB

Summary
Add two decimal integers with up to 100000 digits given on one line and print their exact sum.
Level

Easy3 of 10

Topics
String, Simulation
Solved
No attempts yet

Problem

Write a program that reads two integers A and B and prints A+B. The two values can be far too large for a 64-bit integer type.

Input

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

Both values are given in decimal with no leading zeros.

Output

Print A+B on the first line, with no leading zeros.

Examples3

  1. Example 1

    Input
    9223372036854775807 9223372036854775808
    
    Expected output
    18446744073709551615
    
  2. Example 2

    Input
    1 1
    
    Expected output
    2
    
  3. Example 3

    Input
    100 200
    
    Expected output
    300