

Time Limit: 2 sec / Memory Limit: 256 MiB
配点 : 点
問題文
AtCoderでは、コンテストに参加すると「色」が付き、これはレートによって次のように変化します:
- レート -:灰色
- レート -:茶色
- レート -:緑色
- レート -:水色
- レート -:青色
- レート -:黄色
- レート -:橙色
- レート -:赤色
また、レートが 以上になると色を自由に変えることができます。
現在 人の人がAtCoderのコンテストに参加したことがあり、 人目の人のレートは です。
そのとき、色の種類数の最小値と最大値を求めなさい。
制約
- は整数である。
入力
入力は以下の形式で標準入力から与えられる。
出力
色の種類数の最小値、最大値をこの順で空白区切りで出力しなさい。
入力例 1Copy
4 2100 2500 2700 2700
出力例 1Copy
2 2
レート の人は「黄色」であり、それ以外の人は「橙色」なので、色の種類数は となる。
入力例 2Copy
5 1100 1900 2800 3200 3200
出力例 2Copy
3 5
レート の人は「緑色」、レート の人は「青色」、レート の人は「赤色」である。
人目が「赤色」を選び、 人目が「青色」を選んだ時、色の種類数は であり、これは最小値を取る一つの例である。
人目が「紫色」を選び、 人目が「黒色」を選んだ時、色の種類数は であり、これは最大値を取る一つの例である。
入力例 3Copy
20 800 810 820 830 840 850 860 870 880 890 900 910 920 930 940 950 960 970 980 990
出力例 3Copy
1 1
この場合全員が「緑色」である。よって色の種類数は となる。
Score : points
Problem Statement
In AtCoder, a person who has participated in a contest receives a color, which corresponds to the person's rating as follows:
- Rating - : gray
- Rating - : brown
- Rating - : green
- Rating - : cyan
- Rating - : blue
- Rating - : yellow
- Rating - : orange
- Rating - : red
Other than the above, a person whose rating is or higher can freely pick his/her color, which can be one of the eight colors above or not.
Currently, there are users who have participated in a contest in AtCoder, and the -th user has a rating of .
Find the minimum and maximum possible numbers of different colors of the users.
Constraints
- is an integer.
Input
Input is given from Standard Input in the following format:
Output
Print the minimum possible number of different colors of the users, and the maximum possible number of different colors, with a space in between.
Sample Input 1Copy
4 2100 2500 2700 2700
Sample Output 1Copy
2 2
The user with rating is "yellow", and the others are "orange". There are two different colors.
Sample Input 2Copy
5 1100 1900 2800 3200 3200
Sample Output 2Copy
3 5
The user with rating is "green", the user with rating is blue and the user with rating is "red".
If the fourth user picks "red", and the fifth user picks "blue", there are three different colors. This is one possible scenario for the minimum number of colors.
If the fourth user picks "purple", and the fifth user picks "black", there are five different colors. This is one possible scenario for the maximum number of colors.
Sample Input 3Copy
20 800 810 820 830 840 850 860 870 880 890 900 910 920 930 940 950 960 970 980 990
Sample Output 3Copy
1 1
All the users are "green", and thus there is one color.