Problem1183--十进制转n(10以内)进制

1183: 十进制转n(10以内)进制

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

输入一个十进制数x和进制n,将x转换成n进制。

Input

两个正整数x和n,0<=x<=10000,2<=n<=9。

Output

x的n进制形式。

Sample Input Copy

354 8

Sample Output Copy

542

Source/Category