#C443. Multiply Strings

    ID: 47967 Type: Default 1000ms 256MiB

Multiply Strings

Multiply Strings

You are given two strings X and Y representing non-negative integers. Your task is to compute the product of these two numbers as if performing manual multiplication.

You should not convert the entire strings into numbers directly, as the input can be very large. Instead, simulate the manual multiplication process.

The multiplication follows the formula: \( X \times Y = \text{result} \).

inputFormat

The input consists of two lines. Each line contains a non-negative integer represented as a string.

Example:

123
456

outputFormat

Output a single line that contains the product of the two input numbers as a string.

Example:

56088
## sample
2
3
6

</p>