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