#K50707. First Occurrence Greater Than 25

    ID: 28924 Type: Default 1000ms 256MiB

First Occurrence Greater Than 25

First Occurrence Greater Than 25

Given an array of integers, find the index of the first element which is greater than 25. If no such element exists, output \(-1\).

The function should process the list in linear order and return the 0-indexed position of the first occurrence where \(a_i > 25\). If no element satisfies this condition, the program should output \(-1\).

Input is provided from standard input and output should be printed to standard output.

inputFormat

The first line contains an integer \(n\) denoting the number of elements in the array. The second line contains \(n\) space-separated integers representing the array elements.

outputFormat

Output a single integer — the index of the first element that is greater than 25. If no such element is found, output \(-1\).

## sample
6
5 8 12 30 7 19
3