from fractions import Fraction

print(Fraction(5, 4) * Fraction(8, 7))