from fractions import Fraction print(((Fraction(19, 47) + Fraction(28, 43)) / 27).numerator)