import java.util.*;
import java.io.*;
import java.lang.Math;

// This function calculates amount given the principle, rate, and time (amount = principle * e^rt)
public class interest
{
	public static void main(String[] args) throws IOException
	{
		//Creates a scanner object to accept keyboard input
		Scanner stdin = new Scanner(System.in);

		//Sets variables of Pe^rt to the user's specifications
		System.out.println("Enter the amount of money invested.");
		double principle = stdin.nextDouble();

		System.out.println("Enter the interest rate as a percentage.");
		double rate = stdin.nextDouble();

		System.out.println("How many years will your money be invested?");
		double time = stdin.nextDouble();

		//Calculates the total amount of money with the specified principle, rate, and time
		double amount = principle * Math.exp((rate/100) * time);
	
		//Prints out the variables
		System.out.println("You will have $" + amount+" after "+ time + " years.");
	}

	
}