#include <bits/stdc++.h>
using namespace std;
int x, k;
double p, f[305][305];
int main() {
  scanf("%d%d%lf", &x, &k, &p);
  p /= 100;
  for (int i = 0; i <= k; i++)
    for (int j = x + i; j % 2 == 0; j /= 2) 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 (2 * j <= k) f[i + 1][j * 2] += p * (f[i][j] + 1);
    }
  printf("%.10lf", f[k][0]);
}
