#K84642. Sum of Large Numbers
Sum of Large Numbers
Sum of Large Numbers
You are given two non-negative integers represented as strings. Your task is to compute their sum and output the result as a string. Since the numbers can be extremely large (potentially exceeding the range of built-in data types), you must handle the addition manually or using appropriate libraries where available.
The addition should satisfy the formula: \(R = X + Y\), where \(X\) and \(Y\) are the input numbers and \(R\) is their sum.
Note that the input will be provided via standard input and the output should be printed to standard output.
inputFormat
The input consists of two lines. The first line contains the first non-negative integer X
(as a string) and the second line contains the second non-negative integer Y
(as a string).
outputFormat
Output a single line containing the sum of X
and Y
as a string.
12345678901234567890
98765432109876543210
111111111011111111100