a=0 for i in range(int(input())): a+=int(input())**0.5 print(a)