import fractions
fractions.Fraction(1, 2) #fractions.Fraction(분자, 분모)
a = fractions.Fraction(1, 2) #a = 1/2
import fractions
a = fractions.Fraction(13 , 24)
print(a.numerator) # 분자 13
print(a.denominator) # 분모 24
from fractions import Fraction
a = Fraction(1,3) + Fraction(1,3)
print(a) # Fraction(2,3)
from fractions import Fraction
Fraction(1, 2) + Fraction(1, 3)
# Fraction(5, 6)
import fractions
print(fractions.gcd(10,20)) # 10 과 25의 최대공약수 5
print(fractions.gcd(7,9)) # 7 과 9 의 최대공약수