Synthetic Division

Input





x6 x5 x4 x3 x2 x constant
        




x5 x4 x3 x2 x constant remainder




------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------




Output: