n, c = [int(x) for x in input().split()] bs = [int(x) for x in input().split()] print(sum(bs))