#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;
}
