Description

Everyone has done addition, subtraction, multiplication and division of fractions in elementary school, right? Today we will write about the addition operation of fractions.

小學時大家都做過分數的加減乘除對吧,今天我們就來寫一個分數的加法運算吧。

Here are examples for your reference:

這邊有例子給你參考:

3/4+7/5=43/20

3/4+7/5=43/20

Write a program to add fractions.

請撰寫一個程式來計算分數的相加。

Input

The input consists of two lines, all inputs are integers:

輸入包含兩行,所有輸入皆為整數:

The first line gives the first score

第一行給定第一個分數

The second line gives the second score

第二行給定第二個分數

Output

Please output the result of adding two fractions. Please remember to reduce the fraction to its simplest form.

請輸出兩分數相加的結果,請記得將分數化為最簡

Sample Input 1

Sample Input 2

3/4
7/5
10/20
1/4

Sample Output 1

Sample Output 2

43/20
3/4

Sample Input 3

Sample Output 3

11/8
2/4
15/8

Hint

The simplest way to convert a fraction into a fraction is to calculate the answer ��ba, and then divide �,�a,b

將分數化為最簡的做法就是算出答案 ��ba後,針對 其中 �,�a,b 分別除上他們的最大公因數即可。

Ans