/** 10/17/2018 */

import java.util.Scanner;

public class Interest
  /** This is Question 1 on the sample exam    */
{ 
 public static void main(String[]  args)
 {
  Scanner sc = new Scanner(System.in);
  final double INTEREST = .0231;
  System.out.println("Enter original principal that was invested: ");
  double principal = sc.nextDouble();
  System.out.println("Enter number of years: ");
  int years = sc.nextInt();
  
  double amount = principal * Math.pow(1+INTEREST,years);
  System.out.printf("Amount is: %.2f \n", amount);
 }
}