print(round(sum(map(__import__('decimal').Decimal, [input() for i in range(int(input()))])), 10))