#C13736. Filter Integers Greater Than X

    ID: 43307 Type: Default 1000ms 256MiB

Filter Integers Greater Than X

Filter Integers Greater Than X

You are given a list of integers and an integer (x). Your task is to print all the integers from the list that are strictly greater than (x) in the order they appear. If no integer qualifies, print an empty line.

The input will be provided via standard input and the result should be printed to standard output. Ensure your solution handles edge cases, such as an empty list.

inputFormat

The first line contains an integer (n) representing the number of elements in the list. The second line contains (n) space-separated integers. The third line contains the integer (x).

outputFormat

Print all integers from the list which are greater than (x), separated by a space, in the order they appear. If there is no such integer, output an empty line.## sample

3
11 12 13
10
11 12 13