while True: try: size = int(input()) numbers = list(map(int, input().strip().split())) flag = input() if flag == '0': numbers.sort()...