/**
 * Created by xXxCKxXx on 10/28/2016.
 */

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class Main {
    public static void main(String [] args) throws FileNotFoundException, IOException{
        File f = new File(args[0]);
        BufferedReader read = new BufferedReader(new FileReader(f));

        String line;
        int temp = 0;
        while ((line = read.readLine()) != null){
            line = line.trim();
            temp += Integer.parseInt(line);
        }
        System.out.println(temp);
    }
}