import java.util.*;
import java.io.*;
import java.lang.Math;

// This function calculates the time it takes to accrue a certain amount given the desired total amount, 
// principle, and rate(time = log(amount/principle) / rate)
public class moreinterest
{
	public static void main(String[] args)
	{
		//Creates a scanner object to accept keyboard input
		Scanner stdin = new Scanner(System.in);

		//Takes in variables amount, rate, and principle specified by the user
		System.out.println("Enter the original 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 much money do you want to accrue total?");
		double amount = stdin.nextDouble();

		//Calculates the time given amount, rate, and principle
		double time = 100 * Math.log(amount/principle) / rate;

		//Prints out the variables
		System.out.println("It will take you " + time + " years to accrue $" + amount + ".");
	}	
}