407165: GYM102697 136 Math Team

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

136. Math Teamtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output
This problem is worth 10 points.

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.

Input

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.

Output

Output two slash-separated integers: the total number of questions you got right, and the total number of question you got wrong, respectively.

ExamplesInput
5
2/5
4/6
8/11
3/8
1/9
Output
18/39
Input
5
6/6
5/6
3/6
0/6
5/8
Output
19/32

加入题单

算法标签: