import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.Scanner;
class Ideone
{
{
Scanner in
= new Scanner
(System.
in); int m = in.nextInt();//количество элементов в массиве
double sum = 0; // сумма чисел массива
double[] arr = new double[m];
for(int i = 0; i < m; i++)
{
arr[i] = in.nextDouble();
}
for (int i = 0; i < m; i++)
{
sum += arr[i];//вводим следующее число
}
for (int i = 0; i < m; i++)
{
arr[i] = arr[i] - (sum / m);//результат
}
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBqYXZhLnV0aWwuU2Nhbm5lcjsKCmNsYXNzIElkZW9uZQp7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKCQlTY2FubmVyIGluID0gbmV3IFNjYW5uZXIoU3lzdGVtLmluKTsKCQlpbnQgbSA9IGluLm5leHRJbnQoKTsvL9C60L7Qu9C40YfQtdGB0YLQstC+INGN0LvQtdC80LXQvdGC0L7QsiDQsiDQvNCw0YHRgdC40LLQtQoJCWRvdWJsZSBzdW0gPSAwOyAvLyDRgdGD0LzQvNCwINGH0LjRgdC10Lsg0LzQsNGB0YHQuNCy0LAKCQkKCQlkb3VibGVbXSBhcnIgPSBuZXcgZG91YmxlW21dOwoJCWZvcihpbnQgaSA9IDA7IGkgPCBtOyBpKyspCgkJewoJCQlhcnJbaV0gPSBpbi5uZXh0RG91YmxlKCk7CgkJfQoJCQoJCWZvciAoaW50IGkgPSAwOyBpIDwgbTsgaSsrKQoJCXsKCQkJc3VtICs9IGFycltpXTsvL9Cy0LLQvtC00LjQvCDRgdC70LXQtNGD0Y7RidC10LUg0YfQuNGB0LvQvgoJCX0KCgkJZm9yIChpbnQgaSA9IDA7IGkgPCBtOyBpKyspCgkJewoJCQlhcnJbaV0gPSBhcnJbaV0gLSAoc3VtIC8gbSk7Ly/RgNC10LfRg9C70YzRgtCw0YIKCQkJU3lzdGVtLm91dC5wcmludGxuKGFycltpXSk7CgkJfQoJfQp9