Problem B
Níulegasti grunnurinn
Languages
en
is

Jörmunrekur was playing around with writing some numbers in
different bases. He started by trying
Input
The input is a single line containing two integers
Output
Print how often
Scoring
Group |
Points |
Constraints |
1 |
40 |
|
2 |
30 |
|
3 |
30 |
No further constraints |
Sample Input 1 | Sample Output 1 |
---|---|
203433 9 |
3 |
Sample Input 2 | Sample Output 2 |
---|---|
48899 4 |
2 |