import math def div_calc(n, k, time): res_list = [] cur = n count = 0 while count < time: res_list.append(cur // k) cur = cur % k * 10 count += 1 res_list.insert(1, '.') return res_list n, k = map(int,input().split()) before_list = div_calc(n, k + 1, 2) res = None if before_list[-1] == 0: res = int(before_list[0]) else: res = int(before_list[0]) + 1 print(res)