n = int(input())
x = list(map(int, input().split()))
print(sum((xi - round(sum(x)/n))**2 for xi in x)) n = int(input()) n int(input()) int input() input x = list(map(int, input().split())) x list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split print(sum((xi - round(sum(x)/n))**2 for xi in x)) print sum((xi - round(sum(x)/n))**2 for xi in x) sum (xi - round(sum(x)/n))**2 xi - round(sum(x)/n) xi round(sum(x)/n) round sum(x)/n sum(x) sum x n 2 n = int(input()) int(input()) n x = list(map(int, input().split())) list(map(int, input().split())) x
n = int(input())
x = list(map(int, input().split()))
print(sum((xi - round(sum(x)/n))**2 for xi in x))