#P1952. 火星上的加法运算

火星上的加法运算

Description

Recently, Huanhuan read a book about Mars and got confused by an addition operation. Since her arithmetic skills are limited, she asks you for help. As an excellent programmer, you certainly won’t refuse.

Input Format

The first line contains the base of the operation N(2N36)N\left(2 \le N \le 36\right). The next two lines contain the characters to be added. Each string has a length of at most 200200 digits and represents a base-NN number. The digits include 00 to 99 and a to z (representing 1010 to 3535).

Output Format

Output their sum in base NN.

20
1234567890
abcdefghij

bdfi02467j

Hint

Translated by ChatGPT 5