Under construction

Still being built. Things may change

Adding Integers

Time limit1sMemory limit1024 MB

Summary
Read n integers from input and print their sum.
Level

Easy1 of 10

Topics
Implementation, Math
Solved
No attempts yet

Problem

A mathematician has stolen your calculator! Luckily, you know how to code and can write a program that adds numbers. Write a program that adds together a list of integers.

Input

The first line will contain a single integer n that indicates the number of integers to add together. The next n lines will each contain one integer. Your task is to write a program that adds all of the integers together.

Output

Output the resulting integer. The output should be one line containing one integer value.

Examples1

  1. Example 1

    Input
    3
    1
    2
    3
    
    Expected output
    6