#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
int n, m;
int count = 0;
cin >> n >> m;
int l = n;
while (l--)
{
int temp;
cin >> temp;
count += temp;
}
cout <<fixed<<setprecision(2)<< (double)count / (double)(n - m);
system("pause");
return 0;
}