User's AC Ratio

47.1% (16/34)

Submission's AC Ratio

10.4% (18/173)

Description

Since the restriction of hardware, the range of type int is limited. But in real life we will face some cases that need to calculate the value which is out of that range. In this question, you are asked to write a program to deal with such condition.

Input Format

Two lines of digits that represent two numbers, notice that the given number may be greater than the limit of long long int.( $|number|\leq 10^ {50}$ and $number\neq0$ )

Output Format

A single line that represents the result of sum of given numbers.

Sample Input 1

123456789
876543211

Sample Output 1

1000000000

Sample Input 2

999999999
-1000000000

Sample Output 2

-1

Hints

Problem Source

Subtasks

No. Testdata Range Constraints Score
1 0~6 Both two inputs are positive 13
2 0~13 The second input may be negative 4
3 0~20 No specific restriction 3

Testdata and Limits

No. Time Limit (ms) Memory Limit (KiB) Output Limit (KiB) Subtasks
0 1000 65536 65536 1 2 3
1 1000 65536 65536 1 2 3
2 1000 65536 65536 1 2 3
3 1000 65536 65536 1 2 3
4 1000 65536 65536 1 2 3
5 1000 65536 65536 1 2 3
6 1000 65536 65536 1 2 3
7 1000 65536 65536 2 3
8 1000 65536 65536 2 3
9 1000 65536 65536 2 3
10 1000 65536 65536 2 3
11 1000 65536 65536 2 3
12 1000 65536 65536 2 3
13 1000 65536 65536 2 3
14 1000 65536 65536 3
15 1000 65536 65536 3
16 1000 65536 65536 3
17 1000 65536 65536 3
18 1000 65536 65536 3
19 1000 65536 65536 3
20 1000 65536 65536 3