题目描述
Problem Background
Unlike mainland China, when a typhoon is approaching, the Hong Kong Observatory will issue tropical cyclone warning signals of five levels: $1, 3, 8, 9, 10$. The higher the number, the more severe the typhoon's impact. When the $8$th signal, the Strong Wind Signal No. 8, is issued, Hong Kong will suspend classes and work. The image below shows the Hong Kong Observatory's Hurricane Signal No. 10:

Problem Description
The Hong Kong Observatory has selected $8$ weather stations. During the typhoon, the Observatory will decide which level of warning to issue based on the wind speed data from these stations.
- Since the typhoon is already affecting the area, the $1$st Standby Signal will definitely be issued;
- If the sustained wind speed at $4$ stations reaches or exceeds $41$ km/h, the $3$rd Strong Wind Signal will be issued;
- If the sustained wind speed at $4$ stations reaches or exceeds $63$ km/h, the $8$th Strong Wind Signal will be issued;
- If the sustained wind speed at $1$ station reaches or exceeds $118$ km/h, the $10$th Hurricane Signal will be issued;
- If multiple conditions are met simultaneously, the highest level signal will be issued.
Given the wind speed data from these stations, calculate which warning signal the Hong Kong Observatory should issue.
Input Format
The input consists of one line with $8$ positive integers separated by spaces, representing the wind speed observations from the $8$ stations.
Output Format
Output a single positive integer on one line, indicating which level of warning signal should be issued.
Sample Input and Output
Sample Input #1
126 75 94 57 53 81 50 48
Sample Output #1
10
Sample Input #2
76 40 49 36 26 42 27 26
Sample Output #2
1
Sample Input #3
99 83 96 54 63 59 45 55
Sample Output #3
8
Notes
[Sample Explanation]
In the first sample, the first weather station observed wind speeds exceeding $118$ km/h, so the $10$th Hurricane Signal should be issued. This is real wind speed data from the 2023 Super Typhoon Saola affecting Hong Kong.
In the second sample, only $3$ weather stations had sustained wind speeds reaching or exceeding $41$ km/h, so only the $1$st Standby Signal criteria were met. This is real wind speed data from the 2023 Strong Typhoon Koinu affecting Hong Kong.
In the third sample, exactly $4$ stations (the $1st, 2nd, 3rd, and 5th) had sustained wind speeds reaching or exceeding $63$ km/h, so the criteria for the $8$th Strong Wind Signal were met. This is real wind speed data from the 2008 Typhoon Nuri landing in Hong Kong.
[Data Range]
For all wind speed observations $x$, it is guaranteed that $1 \leq x \leq 300$.
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分