Problem Description

Read n and base b (2 to 10). Count digits needed to write n in base b. For n=0 answer is 1.

Input Format

One line: n b.

Output Format

One integer digits.

Sample Test Case

Input:
15 2
Output:
4

Constraints

0

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next