from decimal import* a=str(round(sum(Decimal(input())for x in[0]*int(input())),10)) print([a,'0.'+'0'*10][a=='0E-10'])