#Convert total_years to centuries, decades, and years, finding the maximum number of centuries, then decades, then years.

# A century is 100 years. A decade is 10 years 

total_years = int(input())

num_centuries = total_years // 100 
remaining_after_centuries = total_years % 100 

num_decades = remaining_after_centuries // 10 
num_years = remaining_after_centuries % 10 

print('Centuries:', num_centuries)
print('Decades:', num_decades)
print('Years:', num_years)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: