#C6. Filter Elements Greater Than Threshold

    ID: 49710 Type: Default 1000ms 256MiB

Filter Elements Greater Than Threshold

Filter Elements Greater Than Threshold

You are given an array of integers and a threshold value T. Your task is to filter out and return all the elements in the array that are strictly greater than T.

Formally, given an array \(A = [a_1, a_2, \dots, a_n]\) and a threshold \(T\), output all \(a_i\) such that \(a_i > T\) in the same order as they appear in the input.

Note: If there are no elements greater than T, print an empty line.

inputFormat

The first line contains two integers \(n\) and \(T\), where \(n\) is the number of elements in the array and \(T\) is the threshold value.

The second line contains \(n\) space-separated integers, representing the elements of the array.

outputFormat

Output a single line containing all the elements from the array that are greater than \(T\), separated by a single space.

If no such element exists, output an empty line.

## sample
5 6
1 5 8 10 12
8 10 12