#include <stdio.h>
#include <stdlib.h>
#include <string.h>



int sum_array(int arr[], int n) {
    // This function is BUGGY. Find and fix the two bugs.
    int total = 1;
    for (int i = 1; i <= n; i++) {
        total += arr[i];
    }
    return total;
}


int main(void) {
    int n;
    if (scanf("%d", &n) != 1) { n = 0; }
    int arr[1000];
    for (int i = 0; i < n; i++) { scanf("%d", &arr[i]); }
    printf("%d\n", sum_array(arr, n));
    return 0;
}
