Any Base Addition

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 add the two numbes and print their value in base b.

Input Format

A base b A number n1 A number n2

Output Format

A number representing the sum of n1 and n2 in base b.

Constraints

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

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
8
777
1
Output
1000
Previous
Any Base To Any Base
Next
Any Base Subtraction

Related Questions