Олимпиадный тренинг

Задача 38701. List of Sergei Nikolaevich


Sergey Nikolaevich likes to study statistics. At his disposal came across a list of the growth of all the students of the lyceum. To his chagrin, all the data was written in random order and, moreover, took up several pages. One page contains a record of 25 students. Help Sergey Nikolaevich determine on which page there is information about the first highest and first lowest lyceum students. Pages are numbered from 1.

Input
The first line contains the number N - the number of people in the list (1<N<=105). The second line contains N numbers - growth of people in the list (each number in the range from 100 to 220).

Imprint
Display 2 numbers on the same line separated by a space:
- the first number is the number of the page on which the information about the first highest student is located;
- the second number - number of the page on which the information about the first lowest student is located. 
 
Examples
# Input Output
1
10
112 136 165 205 122 116 177 212 107 169  
1 1