Under construction

Still being built. Things may change

Hidden Sum

Time limit1sMemory limit1024 MB

Summary
Given ten integers, print the one that equals the sum of the other nine.
Level

Easy1 of 10

Topics
Math, Implementation
Solved
No attempts yet

Problem

Simas and Jurgis play the following game. Simas chooses nine integers, both positive and negative, for example 5,4,−5,−3,9,1,2,5,−115, 4, -5, -3, 9, 1, 2, 5, -11. He then computes their sum 5+4+(−5)+(−3)+9+1+2+5+(−11)=75 + 4 + (-5) + (-3) + 9 + 1 + 2 + 5 + (-11) = 7 and hides it somewhere among the numbers. This gives ten numbers in total: 5,4,−5,−3,9,1,7,2,5,−115, 4, -5, -3, 9, 1, 7, 2, 5, -11.

Simas then shows the sequence to Jurgis. Jurgis wants to find, as quickly as possible, which of the ten numbers is the hidden sum of the other nine.

Write a program that helps Jurgis find the hidden sum.

Input

The input consists of ten lines. Each line contains one integer.

Output

Your program must print the integer that is the hidden sum. The answer is always unique.

Constraints

  • All numbers are between −1 000 000-1\,000\,000 and 1 000 0001\,000\,000.

Examples1

  1. Example 1

    Input
    5
    4
    -5
    -3
    9
    1
    7
    2
    5
    -11
    
    Expected output
    7