#include <stdio.h>
int calculate_sum(int *ptr, int n) {
// Your logic here
int i,sum=0;
for(i=0;i<n;i++)
{
//sum=sum+ptr[i];
sum=sum+*(ptr+i);
}
return sum;
}
int main() {
int n;
scanf("%d", &n);
int arr[100];
for (int i = 0; i < n; i++) {
scanf("%d", &arr[i]);
}
int result = calculate_sum(arr, n);
printf("%d", result);
return 0;
}