# -*- coding: utf-8 -*- from decimal import * n, = map(int, raw_input().split()) total = Decimal(0.0) for i in xrange(n): c, = map(str, raw_input().split()) total += Decimal(c) print "{0:.10f}".format(total)