Write a program that performs addition, subtraction, multiplication, and division of fractions. The format for fractions in the input and output is as follows:
The sign of the number (written only if its absence changes the number);
The integer part (if the integer part is zero and both numerator and denominator are present, it is omitted);
A space (not used if either the integer or fractional part is missing);
The numerator (if it is not zero);
The sign / (if the numerator is present);
The denominator (if the numerator is present).
Examples of fraction representation: -7 3/4, 8 1/2, -7/11, 0, 11.
The first line contains a fraction (the first operand), the second line contains the operation sign ("+" for addition, "-" for subtraction, "*" for multiplication, "/" for division), and the third line contains a fraction (the second operand). Both fractions may be reducible.
The integer part can take values from to , the numerator and denominator can take values from to , and for division, the second operand is not equal to zero.
Print a single irreducible proper fraction (the result) in the described format.
Example 1