1 max(a[1],max(a[2],min(a[3],min(a[4],max(a[5],a[6])))))