def seconds_to_years_months_days(seconds):
minute = 60
hour = 60 * minute
day = 24 * hour
month = 30 * day
year = 365 * day
years, seconds = divmod(seconds, year)
months, seconds = divmod(seconds, month)
days, seconds = divmod(seconds, day)
return years, months, days
print(seconds_to_years_months_days(10_000_000))
'''
run:
(0, 3, 25)
'''