#K91502. Find Low Stock Items

    ID: 37989 Type: Default 1000ms 256MiB

Find Low Stock Items

Find Low Stock Items

You are given a stock inventory of \(N\) items and a threshold quantity \(T\). Each item is represented by a pair of integers: the item code and its quantity. Your task is to identify all items whose quantity is less than or equal to \(T\) and display their item codes in ascending order. If every item has a quantity greater than \(T\), output the message "ALL ITEMS SUFFICIENT".

The input is provided via standard input (stdin) and the output should be printed to standard output (stdout).

inputFormat

The first line contains two integers (N) and (T), where (N) denotes the total number of items and (T) is the threshold quantity. The following (N) lines each contain two space-separated integers: the item code and the quantity of that item.

outputFormat

If there is at least one item with quantity less than or equal to (T), output the item codes in ascending order separated by a single space. Otherwise, output "ALL ITEMS SUFFICIENT".## sample

5 10
101 5
102 15
103 8
104 20
105 7
101 103 105