#include <bits/stdc++.h>
using namespace std;
const int N = 305;
int x, k;
double p, p1, p2;
double dp[N][N];
int main() {
  scanf("%d%d%lf", &x, &k, &p);
  p1 = p / 100, p2 = 1.0 - (p / 100);
  for (int i = 0; i <= k; i++)
    for (int j = x + i; j % 2 == 0; j /= 2) dp[0][i]++;
  for (int i = 0; i <= k - 1; i++)
    for (int j = 0; j <= k; j++) {
      if (j) dp[i + 1][j - 1] += p2 * dp[i][j];
      if (j * 2 <= k) dp[i + 1][j * 2] += p1 * (dp[i][j] + 1);
    }
  printf("%.10f\n", dp[k][0]);
  return 0;
}
