#abc220b. [abc220_b]Base K

[abc220_b]Base K

Problem Statement

You are given integers AA and BB, in base KK.
Print AtimesBA \\times B in decimal.

Notes

For base-KK representation, see Wikipedia's article on Positional notation.

Constraints

  • 2leqKleq102 \\leq K \\leq 10
  • 1leqA,Bleq1051 \\leq A,B \\leq 10^5
  • AA and BB are in base-KK representation.

Input

Input is given from Standard Input in the following format:

KK AA BB

Output

Print the answer.


Sample Input 1

2
1011 10100

Sample Output 1

220

1011 in base 22 corresponds to 1111 in base 1010.
10100 in base 22 corresponds to 2020 in base 1010.
We have 11times20=22011 \\times 20 = 220, so print 220220.


Sample Input 2

7
123 456

Sample Output 2

15642

123 in base 77 corresponds to 6666 in base 1010.
456 in base 77 corresponds to 237237 in base 1010.
We have 66times237=1564266 \\times 237 = 15642, so print 1564215642.