#include <bits/stdc++.h>
using namespace std;
int m, n;
double p, q, f[222][222];
int main() {
  cin >> m >> n >> p;
  p /= 100;
  q = 1 - p;
  for (int _r = n, i = 0; i <= _r; ++i)
    for (int j = m + i; j % 2 == 0; j /= 2) ++f[0][i];
  for (int _r = n, i = 0; i < _r; ++i)
    for (int _r = n, j = 0; j <= _r; ++j) {
      if (j) f[i + 1][j - 1] += q * f[i][j];
      if (j * 2 <= n) f[i + 1][j * 2] += p * (f[i][j] + 1);
    }
  cout << fixed << setprecision(20) << f[n][0];
}
