#C2746. Count of Excellent Students

    ID: 46096 Type: Default 1000ms 256MiB

Count of Excellent Students

Count of Excellent Students

You are given marks of students in three subjects: Mathematics, Physics, and Chemistry. A student is considered excellent if and only if:

( \text{Average} \geq 75% ) and no individual subject score is below 50.

Your task is to count how many students are excellent based on the provided criteria.

Note: The input will be taken from standard input (stdin) and the result must be printed to standard output (stdout).

inputFormat

The first line of the input contains a single integer (n) (the number of students). Each of the following (n) lines contains three space-separated integers representing the marks in Mathematics, Physics, and Chemistry respectively.

outputFormat

Output a single integer that denotes the number of excellent students.## sample

5
90 80 70
50 60 70
90 91 92
85 40 90
78 88 84
3