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

#include "node.h"



int list_sum(struct node *head) {
    // TODO: implement this function
    return 0;
}


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]); }
    struct node *head = build_list(arr, n);
    printf("%d\n", list_sum(head));
    free_list(head);
    return 0;
}
