#C6126. Pension Eligibility Counter
Pension Eligibility Counter
Pension Eligibility Counter
You are given data on a number of employees. For each employee, you are provided with three integers representing:
- Age
- Number of medical leave days taken in the previous year
- Years of service
An employee is eligible for the pension scheme if and only if all the following conditions hold:
- \( \text{age} \geq 60 \)
- \( \text{medical leave days} < 15 \)
- \( \text{years of service} \geq 30 \)
Your task is to determine the number of employees eligible for the pension scheme.
inputFormat
The input is given from standard input (stdin) and has the following format:
<N> <age_1> <medical_leave_1> <years_of_service_1> <age_2> <medical_leave_2> <years_of_service_2> ... <age_N> <medical_leave_N> <years_of_service_N>
Where N
(an integer) represents the number of employees, and for each employee the three integers are separated by spaces.
outputFormat
Output a single integer to standard output (stdout) representing the count of employees eligible for the pension scheme.
## sample5
62 12 31
58 10 35
70 14 29
65 20 32
60 5 40
3
</p>