Sum of fractions#7363

Sum of fractions

1 second
128 megabytes
Very easy (≈850)

Find the sum of two proper fractions and . Present the result as an irreducible fraction. If the result is an integer, then print only this integer.

Input

One line contains four positive integers a, b, c, d — the numerators and denominators of the fractions. All numbers do not exceed .

Output

Print the numerator and denominator of the resulting fraction, or an integer if the result is a whole number.

Examples

Example 1

Loading
Loading

Example 9

Loading
Loading