Any Base Multiplication

easy
1. You are given a base b.
2. You are given two numbers n1 and n2 of base b.
3. You are required to multiply n1 and n2 and print the value.

Input Format

A base b A number n1 A number n2

Output Format

A number of base b equal in value to n2 * n1.

Constraints

2 <= b <= 10
0 <= n1 <= 10000
0 <= n2 <= 10000

Notice

Try First, Check Solution later

1. You should first read the question and watch the question video.
2. Think of a solution approach, then try and submit the question on editor tab.
3. We strongly advise you to watch the solution video for prescribed approach.

Example

Input
5
1220
31
Output
43320
Previous
Any Base Subtraction

Related Questions