#C5637. Qualified Bonus

    ID: 49308 Type: Default 1000ms 256MiB

Qualified Bonus

Qualified Bonus

You are given a list of integers representing the years of service of each employee and an integer threshold \(k\). An employee qualifies for the bonus if their years of service is greater than or equal to \(k\). Your task is to determine the indices (0-indexed) of the employees who qualify.

Input: The first line contains an integer \(n\), the number of employees. The second line contains \(n\) space-separated integers representing the years of service of the employees. The third line contains the integer \(k\), which is the minimum number of years required to qualify for the bonus.

Output: Output a list of indices in the format of a Python list (e.g., [0, 1, 2]). If no employee qualifies, output an empty list [].

inputFormat

The input is given via stdin and consists of three lines:

  1. The first line contains a single integer \(n\) — the number of employees.
  2. The second line contains \(n\) space-separated integers representing the years of service of each employee. If \(n = 0\), this line will be empty.
  3. The third line contains an integer \(k\) — the minimum years of service required for the bonus.

outputFormat

The output should be written to stdout. It is a single line containing a list in Python list format that includes the indices of the employees who qualify (i.e., employees whose years of service is at least \(k\)). For example, an output could be [1, 3] or [] if no employee qualifies.

## sample
4
2 4 1 3
5
[]