import java.util.*;
class Main
{
{
Scanner in
= new Scanner
(System.
in); double cur, sum = 0;
while(in.hasNext()){
cur = in.nextDouble();
a.add(cur);
sum += cur;
}
//Если последовательность состоит только из одного числа.
if(a.size() < 2){
System.
out.
print("The sequence must consist of at least two elements."); }
else{
//Заполняем вектор b.
for(int i=0; i < a.size(); ++i){
b.add((sum - (double)(a.elementAt(i)))/(a.size() - 1));
}
//Выводим ответ.
System.
out.
print("The arithmetic average of all elements of this series except the element №i is:\n"); for(int i=0; i < b.size(); ++i){
System.
out.
print("for i = " + (i
+1) + ": " + b.
elementAt(i
) + '\n'); }
}
}
}
aW1wb3J0IGphdmEudXRpbC4qOwoKY2xhc3MgTWFpbgp7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKCQlTY2FubmVyIGluID0gbmV3IFNjYW5uZXIoU3lzdGVtLmluKTsKCQlWZWN0b3IgYSxiOwoJCWEgPSBuZXcgVmVjdG9yKCk7CgkJYiA9IG5ldyBWZWN0b3IoKTsKCQlkb3VibGUgY3VyLCBzdW0gPSAwOwoJCQoJCXdoaWxlKGluLmhhc05leHQoKSl7CgkJCWN1ciA9IGluLm5leHREb3VibGUoKTsKCQkJYS5hZGQoY3VyKTsKCQkJc3VtICs9IGN1cjsKCQl9CgkJLy/QldGB0LvQuCDQv9C+0YHQu9C10LTQvtCy0LDRgtC10LvRjNC90L7RgdGC0Ywg0YHQvtGB0YLQvtC40YIg0YLQvtC70YzQutC+INC40Lcg0L7QtNC90L7Qs9C+INGH0LjRgdC70LAuCgkJaWYoYS5zaXplKCkgPCAyKXsKCQkJU3lzdGVtLm91dC5wcmludCgiVGhlIHNlcXVlbmNlIG11c3QgY29uc2lzdCBvZiBhdCBsZWFzdCB0d28gZWxlbWVudHMuIik7CgkJfQoJCWVsc2V7CgkJCS8v0JfQsNC/0L7Qu9C90Y/QtdC8INCy0LXQutGC0L7RgCB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