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ố abcd

Tính và in ra màn hình tổng của chúng theo công thức sau:ad+bcbd

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

Copy
5 6 3 4

Output

Copy
38/24

Comments

Please read the guidelines before commenting.


There are no comments at the moment.