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.
Constraints
2 <= b <= 10 0 <= n1 <= 256 0 <= n2 <= 256
Format
Input
A base b A number n1 A number n2
Output
A number representing the sum of n1 and n2 in base b.
Example
Sample Input
8
777
1
Sample Output
1000
Question Video