years = int(input("Enter years: "))
rate = 1.1
monthly_salary = float(input("Enter monthly salary: "))
annual_salary = 12 * monthly_salary
total_sum = 0
for i in range(1, years + 1):
total_sum += annual_salary
annual_salary *= rate
if i % 10 == 0:
print(f"Compounded Salary after {i} years: {total_sum:.2f}")
print(f"End Amount after {years} years: {total_sum:.2f}")