Convert the following base-ten numbers to a numerical in the indicated bases:

a. 303 in base three

b. 1876 in base twelve