e-olymp
Problems

Milk and a pie

Milk and a pie

The pupil of the first class additionally obtain the glass of milk and a pie if his weight is less than 30 kilo. In the first class n pupils are studying. The volume of the glass of milk is 200 ml, and the volume of the package of milk is 0,9 liters. Find the number of additional packages of milk and cakes needed every day.

Input

The first line contains the integer n (0 < n100). The next line contains n positive real numbers – the weights of first-graders.

Output

Print two integers in one line - the number of additional packages of milk and cakes needed every day.

Time limit 1 second
Memory limit 128 MiB
Input example #1
8
30 27 31 25 32 29 25 30
Output example #1
1 4
Author sveta_p
Source ІІ этап Всеукраинськой олимпиады по информатике