# Arup Guha
# 8/25/2020
# Program to show why computer programs can be powerful.
# This exam calculates the amount of money accumulated after
# an investment.

# Amount of money we will have after investing $10000 for 10 years at
# 4% rate of return. Note that * is multiplication and ** is exponentiation.
print(10000*(1.04**10))

# How we read in an integer and store it into a variable.
money = int(input("How much money in dollars are you investing?\n"))

# How we read in a real number that might have a decimal and storing into a variable.
rate = float(input("What is the rate of return? Enter 10% as .1.\n"))

# Read in the number of years also.
numyears = int(input("For how many years are you investing?\n"))

# Now, we will answer the query correctly, no matter what someone enters!
print("You will have $", money*( (1+rate)**numyears ), " after ", numyears, " years.", sep="")
