import java.util.*;
import java.lang.*;
import java.io.*;
class Ideone
{
{
Scanner in
= new Scanner
(System.
in); int i, n;
n=in.nextInt();
i=in.nextInt();
if (i<=n) {
double a, s=0, a_m;
for (int j = 0; j < n; j++) {
a=in.nextDouble();
if (j != i) {s+=a;}
}
a_m = s/(n-1);
System.
out.
printf("Ответ: %.1f", a_m
); }
else {System.
out.
printf("Условие не выполнено");} }
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJU2Nhbm5lciBpbiA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbik7CgkJaW50IGksIG47CgkJbj1pbi5uZXh0SW50KCk7CgkJaT1pbi5uZXh0SW50KCk7CgkJaWYgKGk8PW4pIHsKCQkJZG91YmxlIGEsIHM9MCwgYV9tOwoJCQlmb3IgKGludCBqID0gMDsgaiA8IG47IGorKykgewoJCQkJYT1pbi5uZXh0RG91YmxlKCk7CgkJCQlpZiAoaiAhPSBpKSB7cys9YTt9CgkJCX0KCQkJYV9tID0gcy8obi0xKTsKCQkJU3lzdGVtLm91dC5wcmludGYoItCe0YLQstC10YI6ICUuMWYiLCBhX20pOwoJCX0KCQllbHNlIHtTeXN0ZW0ub3V0LnByaW50Zigi0KPRgdC70L7QstC40LUg0L3QtSDQstGL0L/QvtC70L3QtdC90L4iKTt9Cgl9Cn0=