n = int(input()) a = list(map(int, input().split())) if n == 1: print(a[0]) else: print(a[0] + a[1])