For this Question: It's Solo's 1st birthday and everyone is gifting her chocolates. There are N guests invited, and the i<sup>th</sup> guest gives Solo C<sub>i</sub> chocolates.

Find the total number of chocolates that Solo receives.The first line of the input contains an integer N, the number of guests.
The second line of the input contains N integers C<sub>1</sub>, C<sub>2</sub>, ....C<sub>N</sub>

Constraints
1 <= N <= 100
1 <= C<sub>i</sub> <= 100Output a single integer, the total number of chocolates that Solo receives.Sample Input
5
1 2 4 3 2

Sample Output
12

Explanation: Solo receives a total of 1+2+4+3+2 = 12 chocolates.

Sample Input
1
2

Sample Output
2, I have written this Solution Code: 
import java.util.*;
import java.lang.*;
import java.io.*;

class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int A[] = new int[n];
		for(int i=0;i<n;i++){
		    A[i]=sc.nextInt();
		}
		int Total=0;
		for(int i=0;i<n;i++){
		    Total+=A[i];
		}
		System.out.print(Total);
	}
}
, In this Programming Language: Java, Now tell me if this Code is compilable or not?