So i was writing a code to add the no present in an array and i got a runtime as :

> 
> Exception in thread "main" java.lang.NumberFormatException: For input
>  string: "1000000001 1000000002 1000000003 1000000004 1000000005" at
>  java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
>  at java.lang.Long.parseLong(Long.java:589) at
>  java.lang.Long.parseLong(Long.java:631) at
>  Solution.main(Solution.java:20)
> 
> 
> 

For the following code so what should i change in my code please help. Here's the code:

```
import java.io.*;
public class Solution {

public static void main(String args[]) throws IOException 
{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) ;
    int n= Integer.parseInt(br.readLine());
    long ar[] = new long[n];
    for(int i=0;i<n;i++)
    {
        ar[i] = Long.parseLong(br.readLine()); 
    }
    Long sum =0L;
    for(int i=0;i<n;i++)
    {
        sum= sum + ar[i];
    }
    System.out.println(sum);
} 
}

```