165th program input & output

Input :  
How many numbers = 5
a[1] = 4

a[2] = 8

a[3] = 9

a[4] = 78

a[5] = 56
Output :- 

Summation of Arrays element = 155

//////////////////////////////////////////////////////////////////////////////////////////////

Input :  
How many numbers =3
a[1] = 4

a[2] = 8

a[3] = 9
Output :- 

Summation of Arrays element = 21

//////////////////////////////////////////////////////////////////////////////////////////////