N = int(input())
X_list = list(map(int, input().split()))

X_mean = round(sum(X_list) / N)

physical_sum = sum([(i - X_mean)**2 for i in X_list])
print(physical_sum) N = int(input()) N int(input()) int input() input X_list = list(map(int, input().split())) X_list list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split X_mean = round(sum(X_list) / N) X_mean round(sum(X_list) / N) round sum(X_list) / N sum(X_list) sum X_list N (i - X_mean)**2 for i in X_list for i in X_list i X_list for i in X_list (i - X_mean)**2 i - X_mean i X_mean 2 physical_sum = sum([(i - X_mean)**2 for i in X_list]) physical_sum sum([(i - X_mean)**2 for i in X_list]) sum [(i - X_mean)**2 for i in X_list] print(physical_sum) print physical_sum N = int(input()) int(input()) N physical_sum = sum([(i - X_mean)**2 for i in X_list]) sum([(i - X_mean)**2 for i in X_list]) physical_sum X_mean = round(sum(X_list) / N) round(sum(X_list) / N) X_mean X_list = list(map(int, input().split())) list(map(int, input().split())) X_list
N = int(input())
X_list = list(map(int, input().split()))

X_mean = round(sum(X_list) / N)

physical_sum = sum([(i - X_mean)**2 for i in X_list])
print(physical_sum)