{"raw_statement":[{"iden":"statement","content":"You're competing in a large individual math team contest. In the contest, you're given several sets of problems, and for each one of them you get a certain number of them correct. Given this information, you want to figure out your total score in the competition.\n\nFor example, if you scored a 2 out of 3 on the first problem set, and a 3 out of 5 on the second problem set, your total score would be 5 out of 8.\n\nThe first line of input contains a single positive integer $n$: the number of problem sets.\n\nThe next $n$ lines contain two integers separated by a slash \"/\": the number of questions you got right in the problem set, and the total number of questions in the problem set.\n\nOutput two slash-separated integers: the total number of questions you got right, and the total number of question you got wrong, respectively.\n\n"},{"iden":"input","content":"The first line of input contains a single positive integer $n$: the number of problem sets.The next $n$ lines contain two integers separated by a slash \"/\": the number of questions you got right in the problem set, and the total number of questions in the problem set."},{"iden":"output","content":"Output two slash-separated integers: the total number of questions you got right, and the total number of question you got wrong, respectively."},{"iden":"examples","content":"Input5\n2/5\n4/6\n8/11\n3/8\n1/9\nOutput18/39\nInput5\n6/6\n5/6\n3/6\n0/6\n5/8\nOutput19/32\n"}],"translated_statement":null,"sample_group":[],"show_order":[],"formal_statement":"**Definitions**  \nLet $ n \\in \\mathbb{Z}^+ $ be the number of problem sets.  \nFor each $ i \\in \\{1, \\dots, n\\} $, let $ r_i \\in \\mathbb{Z} $ be the number of correct answers and $ t_i \\in \\mathbb{Z} $ be the total number of questions in problem set $ i $.\n\n**Constraints**  \n1. $ n \\geq 1 $  \n2. For each $ i \\in \\{1, \\dots, n\\} $: $ 0 \\leq r_i \\leq t_i $\n\n**Objective**  \nCompute:  \n- Total correct: $ R = \\sum_{i=1}^{n} r_i $  \n- Total wrong: $ W = \\sum_{i=1}^{n} (t_i - r_i) $  \n\nOutput: $ R / W $","simple_statement":"Add up all correct answers and all total questions. Output: total_correct / total_questions.","has_page_source":false}