N, K = map(int, input().split()) print(sum(range(N+1))/(N+1))