s,*n=input().split() a,b=map(int,sorted(n)) if a