from math import ceil, log def suggest_bins_num(n: int) -> int: return max(int(ceil(log(n))), 10)