Y = []
for i in X:
    Y.append(i*i)

V = esperance(Y,P) - esperance(X,P)**2
print(V)