#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 50;
long long x, k;
double p;
double dp[500][500];
int flag[550][550];
int main() {
  cin >> x >> k >> p;
  p /= 100.0;
  for (int i = 0; i <= k; i++) {
    int o = i + x;
    while (o % 2 == 0) {
      dp[0][i]++;
      o /= 2;
    }
  }
  for (int i = 1; i <= k; i++) {
    for (int j = 0; j <= k; j++) {
      dp[i][j << 1] += (dp[i - 1][j] + 1) * p;
      dp[i][j] += dp[i - 1][j + 1] * (1.0 - p);
    }
  }
  cout << fixed;
  cout << setprecision(10) << dp[k][0] << endl;
  return 0;
}
