balance = int(input("Счет - "))
percent = int(input("% - "))
years = 0
print(balance)
while balance < 50000:
years += 1
balance = balance + balance * percent / 100
print(years)
balance = int(input("Счет - "))
percent = int(input("% - "))
years = 0
print(balance)
while balance < 50000:
years += 1
balance = balance + balance * percent / 100
print(years)