#include <bits/stdc++.h>
using namespace std;
int x, k, i, j;
double p, q, f[544][544];
int main() {
  scanf("%d%d%d", &x, &k, &i);
  p = (double)i * 0.01;
  q = 1.0 - p;
  memset(f, 0, sizeof f);
  for (j = 0; j <= k; ++j) f[0][j] = (double)__builtin_ctz(x + j);
  for (i = 1; i <= k; ++i)
    for (j = 0; j <= k; ++j) {
      f[i][j] += f[i - 1][j + 1] * q;
      f[i][j << 1] += (f[i - 1][j] + 1.0) * p;
    }
  printf("%.15lf\n", f[k][0]);
  return 0;
}
