#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int orig, k, perc;
  scanf("%d %d %d", &orig, &k, &perc);
  double p = perc / 100.;
  const int MAXN = 213;
  static double dp[MAXN][MAXN];
  for (int x = (0); x < (k + 1); ++x)
    for (int a = (0); a < (k + 1); ++a) {
      if (x == 0) {
        int s = 0;
        for (int tmp = orig + a; tmp % 2 == 0; tmp /= 2) ++s;
        dp[x][a] = s;
      } else {
        dp[x][a] += (1 - p) * dp[x - 1][a + 1];
        if (a % 2 == 0) dp[x][a] += p * (1 + dp[x - 1][a / 2]);
      }
    }
  printf("%.9lf\n", dp[k][0]);
  return 0;
}
