/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static float descontoComposto(float nominal, float taxa, int tempo)
    {
        return (float)(nominal * (1 - (Math.pow((1-taxa), tempo))));        
    }
    
	public static void main (String[] args) throws java.lang.Exception
	{
		float nominal = 2000;
        float taxa = 0.01f;
        int tempo = 2;
        
        System.out.println(descontoComposto(nominal, taxa, tempo));
	}
}