Problems
A multiplication of a three-digit number by a three-digit number is carried out through the following process.
When the three-digit natural numbers to be placed in positions (1) and (2) are given,
write a program that computes the values to be placed in positions (3), (4), (5), and (6).

Input
In the first line, the three-digit natural number to be placed in position (1) is given,
and in the second line, the three-digit natural number to be placed in position (2) is given.
Output
From the first line to the fourth line, print the values to be placed in positions (3), (4), (5), and (6) in order.
Example
472
385
2360
3776
1416
181720
Tag
Source
KOI 본선 2005 초2