while True: try: n=int(input()) ls=list(map(int,input().split(' '))) left = 0 right = n-1 &...