def transform(subject_number, loop_size):
    """
    >>> transform(17807724, 8)
    14897079
    >>> transform(5764801, 11)
    14897079
    """

    value = 1
    loop = 0

    while loop < loop_size:
        value *= subject_number
        value %= 20201227
        loop += 1

    return value