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.lang.*;
import java.io.*;
import java.math.*;

public class Main {

    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        FastReader() {
            br = new BufferedReader(new
                                    InputStreamReader(System.in));
        }

        FastReader(final InputStream is) {
            if (is != null)
                br = new BufferedReader(new
                                        InputStreamReader(is));
            else new FastReader();
        }

        String next() throws IOException {
            while (st == null || !st.hasMoreElements()) {
                st = new StringTokenizer(br.readLine());
            }
            return st.nextToken();
        }

        int nextInt() throws IOException {
            return Integer.parseInt(next());
        }

        long nextLong() throws IOException {
            return Long.parseLong(next());
        }

        double nextDouble() throws IOException {
            return Double.parseDouble(next());
        }

        String nextLine() throws IOException {
            return br.readLine();
        }
    }

    public static void main(String args[]) throws Exception {
        final FastReader reader = new FastReader();
        PrintWriter writer = new PrintWriter(new BufferedOutputStream(System.out));
        int n = reader.nextInt();
        double p = reader.nextDouble();
        int t = reader.nextInt();

        //state is P[n][t] n ppl in esc at time t
        //t=0 0
        //writer.println("n=" + n + ", p=" + p + ", t=" + t);
        double[][] P = new double[n + 1 ][t + 1];
        for (int i = 0; i <= n; i++) P[i][0] = 0;
        P[0][0] = 1;
        for (int i = 1; i <= t; i++) {
            P[0][i] = P[0][i - 1] * (1 - p);
        }
        for (int m = 1; m <= n; m++) {
            int time = 1;
            while (time <= t) {
                if (m >= n) P[m][time] = P[m][time - 1] + P[m-1][time-1] * p;
                else P[m][time] = P[m][time - 1]*(1-p)  + P[m - 1][time - 1] * p;
                time++;
            }
        }
        //for (double[] r : P) writer.println(Arrays.toString(r));
        double ans = 0.000000d;
        for (int i = 0; i <= n; i++) {
            ans += P[i][t] * i;
        }
        writer.printf("%.06f\n", ans);
        writer.close();
    }

    static int pow2(int v) {
        v--;
        v |= v >> 1;
        v |= v >> 2;
        v |= v >> 4;
        v |= v >> 8;
        v |= v >> 16;
        v++;
        return v;
    }
}