PROGRAMMING:Sum n numbers
The requirement of this problem is very simple, that is to find the sum of 'n' numbers. The trouble is that these numbers are given in the form of rational numerator / denominator, and the sum you output must also be in the form of rational number.
###Input format:
Enter the first line to give a positive integer 'n' ($$$Le $$100). The next line gives' n 'rational numbers in the format' A1 / B1, A2 / B2... '. The title ensures that all numerators and denominators are in the range of long integers. In addition, the sign of negative number must appear in front of the molecule.
###Output format:
Output the simplest form of the sum of the above numbers, that is, the result is written as' integral part, fractional part ', where the fractional part is written as' numerator / denominator'. The numerator is required to be less than the denominator, and they have no common factor. If the integer part of the result is 0, only the fractional part is output.
###Input sample 1:
```in
five
2/5 4/15 1/30 -2/60 8/3
```
###Output sample 1:
```out
3 1/3
```
###Input example 2:
```
two
4/3 2/3
```
###Output example 2:
```
two
```
###Input sample 3:
```
three
1/3 -1/6 1/8
```
###Output example 3:
```
7/24
```
answer:If there is no answer, please comment
###Input format:
Enter the first line to give a positive integer 'n' ($$$Le $$100). The next line gives' n 'rational numbers in the format' A1 / B1, A2 / B2... '. The title ensures that all numerators and denominators are in the range of long integers. In addition, the sign of negative number must appear in front of the molecule.
###Output format:
Output the simplest form of the sum of the above numbers, that is, the result is written as' integral part, fractional part ', where the fractional part is written as' numerator / denominator'. The numerator is required to be less than the denominator, and they have no common factor. If the integer part of the result is 0, only the fractional part is output.
###Input sample 1:
```in
five
2/5 4/15 1/30 -2/60 8/3
```
###Output sample 1:
```out
3 1/3
```
###Input example 2:
```
two
4/3 2/3
```
###Output example 2:
```
two
```
###Input sample 3:
```
three
1/3 -1/6 1/8
```
###Output example 3:
```
7/24
```
answer:If there is no answer, please comment