N = int(input()) a = [int(i) for i in input().split()] if a.__len__() > 1: print("assert") else: a.append(int(input().split())) a.sort() print(a[1])