import math while 1:print int(math.log(*map(int,raw_input().split()))+.1)