num1 = input() num_list = [int(i) for i in input().split()] num3 = int(input()) if num3 == 0: for i in sorted(num_list): print(i,end=' ') elif num3 == 1 ...