#include <bits/stdc++.h>
long double prob[120][70];
int main()
{
prob[0][0]=1;
for(int i=1; i<=110; ++i){
for(int j=1; j<=64; ++j){
prob[i][j] = prob[i-1][j-1] * (1. - pow(2., j-1)*1./pow(2., 64)) +
prob[i-1][j] * (pow(2., j)*1.0 / pow(2., 64));
}
}
printf("%.100Lf\n", pow(prob[110][64], 1000));
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+Cgpsb25nIGRvdWJsZSBwcm9iWzEyMF1bNzBdOwoKaW50IG1haW4oKQp7Cglwcm9iWzBdWzBdPTE7Cglmb3IoaW50IGk9MTsgaTw9MTEwOyArK2kpewogICAgICAgIGZvcihpbnQgaj0xOyBqPD02NDsgKytqKXsKICAgICAgICAgICAgcHJvYltpXVtqXSA9IHByb2JbaS0xXVtqLTFdICogKDEuIC0gcG93KDIuLCBqLTEpKjEuL3BvdygyLiwgNjQpKSArCiAgICAgICAgICAgICAgICAgICAgICAgICBwcm9iW2ktMV1bal0gKiAocG93KDIuLCBqKSoxLjAgLyBwb3coMi4sIDY0KSk7CiAgICAgICAgfQoJfQoJcHJpbnRmKCIlLjEwMExmXG4iLCBwb3cocHJvYlsxMTBdWzY0XSwgMTAwMCkpOwogICAgcmV0dXJuIDA7Cn0K