import fractions if __name__ == '__main__': n = int(input()) ans = sum(fractions.Fraction(input()) for _ in range(n)) print(float(ans))