element, repeat = map(int, input().split()) numbers = [] for ele in element: numbers.append(ele) sum_numbers = [] for _ in repeat: for number in numbers: add_numbers = map(lambda x: number + x) sum_numbers.append(sum(add_numbers)) print(sum(sum_numbers) / element)