from fractions import Fraction


def compile_continued_fraction_representation(seq):
    """
    Compile an integer sequence (continued fraction representation) into its corresponding fraction.
    """

    # sanity check
    assert seq
    # initialize the value to be returned by working backwards from the last number
    retval = Fraction(1, seq.pop())
    # keep going backwords till the start of the sequence
    while seq:
        retval = 1 / (seq.pop() + retval)
    return retval