N = int(input())
X = list(map(int,input().split()))
p = round(sum(X)/len(X))
print(sum([(x-p)**2 for x 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 p = round(sum(X)/len(X)) p round(sum(X)/len(X)) round sum(X)/len(X) sum(X) sum X len(X) len X (x-p)**2 for x in X for x in X x X for x in X (x-p)**2 x-p x p 2 print(sum([(x-p)**2 for x in X])) print sum([(x-p)**2 for x in X]) sum [(x-p)**2 for x in X] N = int(input()) int(input()) N p = round(sum(X)/len(X)) round(sum(X)/len(X)) p X = list(map(int,input().split())) list(map(int,input().split())) X
N = int(input())
X = list(map(int,input().split()))
p = round(sum(X)/len(X))
print(sum([(x-p)**2 for x in X]))