n = int(input())
x_list = list(map(int, input().split()))
m = int(sum(x_list)/n + 0.5)
print(sum((x - m)**2 for x in x_list)) 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 m = int(sum(x_list)/n + 0.5) m int(sum(x_list)/n + 0.5) int sum(x_list)/n + 0.5 sum(x_list)/n sum(x_list) sum x_list n 0.5 print(sum((x - m)**2 for x in x_list)) print sum((x - m)**2 for x in x_list) sum (x - m)**2 x - m x m 2 n = int(input()) int(input()) n m = int(sum(x_list)/n + 0.5) int(sum(x_list)/n + 0.5) m x_list = list(map(int, input().split())) list(map(int, input().split())) x_list
n = int(input())
x_list = list(map(int, input().split()))
m = int(sum(x_list)/n + 0.5)
print(sum((x - m)**2 for x in x_list))