N=int(input()) A=input() if ' ' in A: print('"assert"') else: A,B,C=int(A),int(input()),int(input()) print(sorted({*[A+B,B+C,A+C]})[-2])