import numpy as np N = int(input()) a = np.array(list(map(float, input().split()))) s = np.sum(a) t = np.sum(a/s*a) ans = s-t+1 print(ans)