#C10359. Elements Outside the Inclusive Range
Elements Outside the Inclusive Range
Elements Outside the Inclusive Range
Given a list of numbers and two boundary values low and high, print all elements that are outside the inclusive range defined by \(low\) and \(high\). In other words, for each element \(x\) in the list, output \(x\) if \(x high\).
The order of the output should follow the original order of the list. If no elements satisfy the condition, print an empty line.
inputFormat
The input is provided via stdin in the following format:
- An integer n representing the number of elements in the list.
- A line containing n space-separated numbers. (If n is 0, this line may be empty.)
- A line with two space-separated numbers representing the boundaries low and high.
outputFormat
Print, in one line, the numbers (separated by a single space) that are outside the inclusive range \( [low, high] \). If there are no such numbers, output an empty line.
## sample3
7 8 9
6 10