You are given a text that contains data which is a sequence of no more than 10^5
structures.
It is known that name and surname contsins 5 characters, 10 ≤ age ≤ 99, 1000 ≤ salary ≤ 9999.
Data given in one line.
In the first line print the minimum and the maximum salary. In the second line print the number of workers with minimum and maximum salary.