Skip to main content
LIVE CONTEST: Round #7 · Begin Marathon is live now! …

~/algor $ cat problems/string/multiply-a-big-number-by-a-digit

Multiply a big number by a digit

Author Iqbolshoh Ilhomjonov 3 @iqbolshoh 650 problems
Medium 1000 ms 128 MB 66%
Share

A positive integer and a digit are given. Find their product :

Multiplying a multi-digit number by a one-digit number in a column

Input

One line with a positive integer and a digit separated by a space.

Output

One integer — without leading zeros.

Note


has no leading zero

Examples

Input #1
123456789123456789123456789 9
Output #1
1111111102111111102111111101
Input #2
5 0
Output #2
0

Sign in to submit a solution

Signing up is free and takes a minute.