from fractions import Fraction ans = (Fraction(19, 47) + Fraction(28, 43)) / Fraction(27, 1) ans = str(ans) print(ans[:2])