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.
Constraints
2 <= b <= 10 0 <= n1 <= 10000 0 <= n2 <= 10000
Format
Input
A base b A number n1 A number n2
Output
A number of base b equal in value to n2 * n1.
Example
Sample Input
5
1220
31
Sample Output
43320
Question Video