Unpredictable weather
Limits: 2 sec., 256 MiB
This statement was translated automatically from Ukrainian.
Zenyk wants to go for a walk in the park with Marichka. However, he does not want his friend to freeze during the walk. Therefore, Zenyk found the weather forecast for the next \(n\) days on the internet. For the \(i\)-th day, he knows that the average air temperature on this day will be \(a_i\) degrees Celsius. According to Zenyk, only days when the average air temperature is positive are suitable for a walk.
Help Zenyk determine the days that, in his opinion, are suitable for a walk. Note that the days are numbered starting from one.
Input
The first line contains a single positive integer \(n\) — the number of days for which Zenyk knows the weather forecast.
The second line contains \(n\) integers \(a_i\) — the average air temperatures on the respective days.
Output
In a single line, print several numbers — the numbers of the days that, according to Zenyk, are suitable for a walk, in ascending order.
It is guaranteed that there will be at least one such day.
Constraints
\(1 \le n \le 100\),
\(|a_i| \le 100\).
Samples
| Input (stdin) | Output (stdout) |
|---|---|
| 4 4 7 44 47 | 1 2 3 4 |
| Input (stdin) | Output (stdout) |
|---|---|
| 7 -3 2 0 0 11 17 -1 | 2 5 6 |
Submit a solution
| Element Type | Created | Who | Problem | Compiler | Result | Time (sec.) | Memory (MiB) | # | Actions |
|---|
| Element Type | Created | Who | Problem | Compiler | Result | Time (sec.) | Memory (MiB) | # | Actions |
|---|