#K72992. Filter Array by Threshold

    ID: 33876 Type: Default 1000ms 256MiB

Filter Array by Threshold

Filter Array by Threshold

You are given a list of integers and a threshold value. Your task is to filter out and print only those integers which are strictly greater than the threshold.

In mathematical terms, for each integer \( x \) in the array, print \( x \) if \( x > T \), where \( T \) is the threshold.

The order of the integers in the output should be the same as they appear in the input.

inputFormat

The input is read from standard input (stdin) and consists of two lines:

  1. The first line contains a sequence of integers separated by spaces. This represents the array. If the line is empty, it represents an empty array.
  2. The second line contains a single integer which is the threshold, \( T \).

outputFormat

Output the filtered integers in a single line separated by a single space, in the same order as they appear in the original array. If no integer is greater than the threshold, output an empty line.

## sample
1 5 8 10 12
7
8 10 12

</p>