N = input() N = int(N) data = list(map(int, input().split())) len_list = [] for i in range(N): data_i = data[i:N] res = [data_i[0]] slow = 0 fast = 1 for i in range(len(data_i) - 1): if data_i[fast] >= data_i[slow]: res.append(data_i[fast]) ...