N, K = [int(i) for i in input().strip().split(' ')] print((N * (N + 1) / 2) / (N + 1))