�
zfc @ s� d Z d d l m Z d d l m Z d d l Z d d l Z d d l Z d d l Z d d g Z e j
Z
d � Z e j d e j
e j B� Z d e
f d � � YZ d S(
s+ Rational, infinite-precision, real numbers.i����( t division( t DecimalNt Fractiont gcdc C s" x | r | | | } } q W| S( s� Calculate the Greatest Common Divisor of a and b.
Unless b==0, the result will have the same sign as b (so that when
b is divided by it, the result comes out positive).
( ( t at b( ( s! /usr/lib64/python2.7/fractions.pyR s sC
\A\s* # optional whitespace at the start, then
(?P