Problem: Ilya got tired of sports programming, left university and got a job in the subway. He was given the task to determine the escalator load factor. 

Let's assume that n people stand in the queue for the escalator. At each second one of the two following possibilities takes place: either the first person in the queue enters the escalator with probability p, or the first person in the queue doesn't move with probability (1 - p), paralyzed by his fear of escalators and making the whole queue wait behind him.

Formally speaking, the i-th person in the queue cannot enter the escalator until people with indices from 1 to i - 1 inclusive enter it. In one second only one person can enter the escalator. The escalator is infinite, so if a person enters it, he never leaves it, that is he will be standing on the escalator at any following second. Ilya needs to count the expected value of the number of people standing on the escalator after t seconds. 

Your task is to help him solve this complicated task.

Input

The first line of the input contains three numbers n, p, t (1 ≤ n, t ≤ 2000, 0 ≤ p ≤ 1). Numbers n and t are integers, number p is real, given with exactly two digits after the decimal point.

Output

Print a single real number — the expected number of people who will be standing on the escalator after t seconds. The absolute or relative error mustn't exceed 10 - 6.

Examples

Input

1 0.50 1


Output

0.5


Input

1 0.50 4


Output

0.9375


Input

4 0.20 2


Output

0.4

Solution (in JAVA):

Solution:
import java.util.*;
import java.io.*;
import java.math.*;

public class Task{
        //  ..............code begins here..............

static long mod=(long)1e9+7;
static double f(int n, int k,double p) throws  IOException{
    double res=1d,c=(double)n;//n/(n-k)*k
    double k1=(double)k,n_k=(double)n-k;
    while(c>1d){
        res*=c;c--;
        while(res>(double)1e5){
            if(k1>=1d){
                res/=k1;k1--;
                res*=p;
            }
            else if(n_k>=1d){
                res/=n_k;n_k--;
                res*=(1d-p);
            }
        }
    }
    while(true){
        if(k1>=1d){
            res/=k1;k1--;
            res*=p;
        }
        else if(n_k>=1d){
            res/=n_k;n_k--;
            res*=(1d-p);
        }
        else break;
    }
    ///out.write(res+" ");
    return res;
}
static void solve() throws  IOException {
            String[] s=read().split(" ");
            int n=int_v(s[0]),t=int_v(s[2]); double p=Double.parseDouble(s[1]);
            double res=0d; int k=Math.min(t,n);
            for(int i=1;i<k;i++){
                res+=(double)f(t,i,p)*i;
            }
            for(int i=1;i<=t-k+1;i++){
                res+=(double)f(t-i,k-1,p)*k*p;
            }
            out.write(res+"");
}


public static void main(String[] args) throws  IOException{
                assign();
                int t=1;//int_v(read());
                while(t--!=0){solve();}
                out.flush();
}

// taking inputs
static BufferedReader s1;
static BufferedWriter out;
static String read() throws IOException{String line="";while(line.length()==0){line=s1.readLine();continue;}return line;}
static int int_v (String s1){return Integer.parseInt(s1);}
static long long_v(String s1){return Long.parseLong(s1);}
static int[] int_arr() throws IOException{String[] a=read().split(" ");int[] b=new int[a.length];for(int i=0;i<a.length;i++){b[i]=int_v(a[i]);}return b;}
static long[] long_arr() throws IOException{String[] a=read().split(" ");long[] b=new long[a.length];for(int i=0;i<a.length;i++){b[i]=long_v(a[i]);}return b;}
static void assign(){s1=new BufferedReader(new InputStreamReader(System.in));out=new BufferedWriter(new OutputStreamWriter(System.out));}
static String setpreciosion(double d,int k){BigDecimal d1 = new BigDecimal(Double.toString(d));return d1.setScale(k,RoundingMode.HALF_UP).toString();}//UP DOWN HALF_UP
static int gcd(int a,int b){if(b==0){return a;}return gcd(b,a%b);}
static long Modpow(long a,long p,long m){long res=1;while(p>0){if((p&1)!=0){res=(res*a)%m;}p >>=1;a=(a*a)%m;}return res%m;}
static long Modmul(long a,long b,long m){return ((a%m)*(b%m))%m;}
static long ModInv(long a,long m){return Modpow(a,m-2,m);}
static long nck(int n,int r,long m){if(r>n){return 0l;}return Modmul(f[n],ModInv(Modmul(f[n-r],f[r],m),m),m);}
static long[] f;
}