#Z16111. 甲流病人初筛

甲流病人初筛

Description

Currently, it is the peak season for Influenza A. To better facilitate triage and treatment, hospitals require checking patients' body temperature and cough symptoms during registration. Patients with a temperature of 37.5 degrees or higher (including exactly 37.5 degrees) and who are coughing are preliminarily classified as suspected Influenza A cases (initial screening). The task is to count how many patients visiting the hospital on a given day are initially screened as suspected Influenza A cases.

Input Format

The first line contains the number of patients visiting the hospital that day, denoted as n (n < 200).

Each of the following n lines contains the patient's information, consisting of three fields: name (a string without spaces, up to 8 characters), body temperature (float), and whether they are coughing (an integer, where 1 indicates coughing and 0 indicates no coughing). The three fields in each line are separated by a single space.

Output Format

Output the names of all patients screened as suspected Influenza A cases in the order of input, with each name on a separate line. After listing all such patients, output an additional line indicating the total number of patients screened as suspected Influenza A cases.

```input1 5 Zhang 38.3 0 Li 37.5 1 Wang 37.1 1 Zhao 39.0 1 Liu 38.2 1 ``` ```output1 Li Zhao Liu 3 ``` ## 译文

CodesOnline