Write a year as a sum of powers, where the powers are the year's digits.