Skip to content

UKSPC Practice Problems » N Digit Integer Multiplication

Write a program that will multiply 2 N-digit positive integers where N may be arbitrarily large (1 < N < 60). Your program should output the product(s).

If the product is longer than 70 digits, the output should be broken into two lines with at most 70 digits per line.

Input Specification

One N-digit positive integer per line in input and output files.

Sample Input


Sample Output