Problem J: 【模拟】任意进制转换

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:22 Solved:11

Description

将整数n转换成b进制。

Input

 一行,两个整数 n b ( 1 <= n <= 32767, 2 <= b <= 20 )。

Output

 一行,为n转换成b进制后的数。

Sample Input Copy

1229 16

Sample Output Copy

4CD