def main(): N = int(input()) a = sum(int(input()) for _ in range(N)) print(a) if __name__ == '__main__': main()