years = 0

rate = input("Enter interest rate (as percentage):")
if rate[-1] == '%':
    rate = rate[:-1]
rate = float(rate) / 100

deposit = float(input("Enter initial deposit:"))
goal = float(input("Enter savings goal:"))
while deposit < goal:
    deposit += rate * deposit
    years += 1
print("You must wait", years, "years")