import java. util. Scanner; public class main{ public static void main (String[] args){ Scanner scanner = new Scanner (System. in); //行数 int count = scanner. nextInt(); //数 long number; //答え long answer = 0; for (int j = 0; j < count; j ++){ number = scanner. nextLong(); answer += number; } System. out. println (answer); } }