#include <bits/stdc++.h>
using namespace std;
int read() {
  int x = 0, f = 1;
  char c = getchar();
  while (c < '0' || c > '9') {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (c >= '0' && c <= '9')
    x = (x << 3) + (x << 1) + (c ^ '0'), c = getchar();
  return x * f;
}
const int N = 305;
int x, k;
double p, f[N][N];
int main() {
  x = read(), k = read(), p = read();
  p /= 100;
  for (int i = 0; i <= k; i++)
    for (int j = x + i; !(j & 1); j >>= 1) {
      f[0][i]++;
    }
  for (int i = 0; i < k; i++)
    for (int j = 0; j <= k; j++) {
      if (j) f[i + 1][j - 1] += (1 - p) * f[i][j];
      if (j * 2 <= k) f[i + 1][j * 2] += p * (f[i][j] + 1);
    }
  printf("%.10f", f[k][0]);
}
