Convert to Base B
Write the non-negative integer in base . Digits above 9 are A (10), B (11), … up to Z (35).
Input
Two integers and .
Output
in base .
Constraints
,
Sample 1
Input
10 2
Output
1010
Sample 2
Input
255 16
Output
FF
Write the non-negative integer in base . Digits above 9 are A (10), B (11), … up to Z (35).
Two integers and .
in base .
,
Input
10 2
Output
1010
Input
255 16
Output
FF