Joan Rowling is the author of famous stories about the young wizard Harry Potter.
Before writing Harry Potter, Joan studied various manuscripts, descriptions and sources about the Chronicles of Narnia. Later, she also began exploring the world of Middle-earth by John Tolkien. So her training continued until the beginning of working practice.
There is no exact data on how many books Joan read, but, most likely, she still has them.
Let's help the famous writer calculate the total number of pages read from all books.

Input:
in the first line the number N is entered - the number of books (0 < N <=100)
then there are N numbers, one number per line - the number of pages in the corresponding book (natural numbers less than 1000 each) Output:
output one number - the total number of pages in all books