➽ Problem:-

https://www.hackerrank.com/challenges/a-very-big-sum/problem

➽ Solution:-

import java.io.*;

import java.math.*;

import java.security.*;

import java.text.*;

import java.util.*;

import java.util.concurrent.*;

import java.util.regex.*;

public class Solution

{

    public static void main(String args[])

    {

        int N;

        long sum=0;

        Scanner sc = new Scanner(System.in);

        N = sc.nextInt();

       

        while(N-- > 0 )

        {

            sum += sc.nextInt();

        }

       

        System.out.print(sum);

    }

}