N, K = map(int, input().split()) R = 0 for i in range(N+1): R += i/(N+1) print(R)