Tổng 2 phân số

View as PDF

Submit solution

Points: 0.01
Time limit: 1.0s
Memory limit: 64M
Input: stdin
Output: stdout

Authors:
Problem type

Viết chương trình để tính nhập vào hai phân số ~\frac{a}{b}~ và ~\frac{c}{d}~

Tính và in ra màn hình tổng của chúng theo công thức sau:~\frac{a*d+b*c}{b*d}~

Input

Một dòng duy nhất chứa 4 số a, b, c, d

Output

Một dòng duy nhất chứa kết quả là tổng của 2 phân số theo định dạng a/b

Examples

Input

5 6 3 4

Output

38/24

Comments

Please read the guidelines before commenting.


There are no comments at the moment.