{"raw_statement":[{"iden":"statement","content":"While doing your gym assignments in quarantine, your gym teacher makes you record your heart rate after your workouts, and separates them into five \"zones\". These zones of fitness are sorted dependant on your maximum heart rate (MHR), which is determined by taking your age, and subtracting it from 220.\n\nThe zones are separated thusly: \n\nZone 5: 90 - 100 percent of MHR\n\nZone 4: 80 - 89 percent of MHR\n\nZone 3 : 70 - 79 percent of MHR\n\nZone 2 : 60 - 69 percent of MHR\n\nZone 1 : <60 percent of MHR\n\nGiven the first line as the age of the student, the second line will contain an integer $n$ which denotes the amount of test cases to follow.\n\nPrint the appropriate fitness zone for each given test case.\n\n"},{"iden":"input","content":"Given the first line as the age of the student, the second line will contain an integer $n$ which denotes the amount of test cases to follow."},{"iden":"output","content":"Print the appropriate fitness zone for each given test case."},{"iden":"examples","content":"Input16\n3\n165\n152\n86\nOutputZone 4\nZone 3\nZone 1\nInput25\n5\n103\n166\n182\n153\n123\nOutputZone 1\nZone 4\nZone 5\nZone 3\nZone 2\n"}],"translated_statement":null,"sample_group":[],"show_order":[],"formal_statement":"**Definitions**  \nLet $ a \\in \\mathbb{Z}^+ $ denote the age of the student.  \nLet $ \\text{MHR} = 220 - a $.  \nLet $ n \\in \\mathbb{Z}^+ $ denote the number of test cases.  \nLet $ H = (h_1, h_2, \\dots, h_n) $ be a sequence of heart rate measurements, where $ h_i \\in \\mathbb{R}^+ $.\n\n**Constraints**  \n1. $ a \\geq 1 $  \n2. $ n \\geq 1 $  \n3. $ h_i > 0 $ for all $ i \\in \\{1, \\dots, n\\} $\n\n**Objective**  \nFor each $ h_i $, determine the fitness zone $ z_i \\in \\{1, 2, 3, 4, 5\\} $ based on:  \n$$\nz_i = \n\\begin{cases}\n5 & \\text{if } 0.90 \\cdot \\text{MHR} \\leq h_i \\leq 1.00 \\cdot \\text{MHR} \\\\\n4 & \\text{if } 0.80 \\cdot \\text{MHR} \\leq h_i < 0.90 \\cdot \\text{MHR} \\\\\n3 & \\text{if } 0.70 \\cdot \\text{MHR} \\leq h_i < 0.80 \\cdot \\text{MHR} \\\\\n2 & \\text{if } 0.60 \\cdot \\text{MHR} \\leq h_i < 0.70 \\cdot \\text{MHR} \\\\\n1 & \\text{if } h_i < 0.60 \\cdot \\text{MHR}\n\\end{cases}\n$$  \nOutput $ z_1, z_2, \\dots, z_n $.","simple_statement":"Given a person's age, calculate their maximum heart rate (MHR) as 220 minus age.  \nFor each of n heart rate values, determine which fitness zone it falls into:  \n\n- Zone 5: 90–100% of MHR  \n- Zone 4: 80–89% of MHR  \n- Zone 3: 70–79% of MHR  \n- Zone 2: 60–69% of MHR  \n- Zone 1: below 60% of MHR  \n\nPrint the zone number for each heart rate value.","has_page_source":false}