Convert totalyears to millennia, decades, and years, finding the maximum number of millennia, then decades, then years.
a) Millennia: totalyears ÷ 1000, Decades: (totalyears mod 1000) ÷ 10, Years: (totalyears mod 1000) mod 10
b) Millennia: totalyears ÷ 10, Decades: (totalyears mod 100) ÷ 10, Years: (totalyears mod 10)
c) Millennia: totalyears ÷ 100, Decades: (totalyears mod 100) ÷ 10, Years: (totalyears mod 100) mod 10
d) Millennia: totalyears ÷ 100, Decades: (totalyears mod 1000) ÷ 10, Years: (totalyears mod 10)