#B2131. H1N1 Preliminary Screening
H1N1 Preliminary Screening
H1N1 Preliminary Screening
During the H1N1 outbreak, hospitals perform preliminary screening to divert and treat patients appropriately. A patient is considered a suspected H1N1 case if the body temperature is greater than or equal to \(37.5\) degrees Celsius (i.e., \(temp \ge 37.5\)) and the patient is coughing. Given the records of patients who visited the hospital on a given day, your task is to count how many patients are initially screened as H1N1 cases.
inputFormat
The input begins with an integer \(n\) (\(1 \le n \le 10^5\)), representing the number of patients. Each of the following \(n\) lines contains a real number and an integer. The real number indicates the patient's body temperature in degrees Celsius, and the integer (either 0 or 1) indicates whether the patient is coughing (1 means coughing, 0 means not coughing).
outputFormat
Output a single integer representing the number of patients who meet the criteria for preliminary H1N1 screening.
sample
3
36.9 0
37.5 1
38.0 1
2
</p>