407165: GYM102697 136 Math Team
Description
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.
For 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.
InputThe 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.
OutputOutput two slash-separated integers: the total number of questions you got right, and the total number of question you got wrong, respectively.
ExamplesInput5 2/5 4/6 8/11 3/8 1/9Output
18/39Input
5 6/6 5/6 3/6 0/6 5/8Output
19/32