import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline N = int(readline()) nums = map(int, read().split()) s = 0 for x in nums: s += x**.5 print(s)