// Arup Guha
// 2/4/2017
// Solution to AP Review Problem: Interest

import java.util.*;

public class interest {
	
	public static void main(String[] args) {
		
		// Get user input.
		Scanner stdin = new Scanner(System.in);
		System.out.println("What is your deposit to the account?");
		double money = stdin.nextDouble();
		System.out.println("What is the interest rate per year, as a percentage?");
		double rate = stdin.nextDouble()/100;
		System.out.println("How many years will you save the money?");
		int numYears = stdin.nextInt();
		
		// Chart header.
		System.out.println("Year\tAmount");
		
		// Print out money after each year.
		for (int i=0; i<numYears; i++) {
			money = money*(1+rate);
			System.out.println((i+1)+"\t\t$"+money);
		}
	}
}