Fractions: multiplication and division
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Two fractions are given. Find their product or quotient.
Input
Each line contains an example of multiplication or division of fractions. The numerator and denominator of each fraction is a positive integer, not greater than .
Output
For each input example, print in a separate line the answer in the form of an irreducible fraction.
Examples
Input #1
Answer #1
Submissions 2K
Acceptance rate 41%