import java.util.*;


public class Solution {
    public static void main(String[] args) throws Exception {
        int summe = 0;
        int negativ = 0;
        while(true){
            Scanner eingabe = new Scanner(System.in);
            int userEingabe = eingabe.nextInt();
            if (userEingabe < 0){
                negativ = userEingabe;
                break;
            }
            summe = summe + userEingabe;
        }
        System.out.println(summe + negativ);
    }
}