p, q = list(map(int, input().split())) a = 0 conj = 1 / p for _ in range(1000): a += i * conj conj *= (p - 1) / p i += 1 print(min(a, q))