#include<stdio.h>
#include<math.h>

int main(){
    
    int p,r,n;
    
    scanf("%d %d %d",&p,&r,&n);
    
    a=pow((1+r),n)
    float emi=p*r*a/a-1;
    
    printf("%f",emi);
    
    return 0;
}