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