#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define popcount __builtin_popcount using namespace std; using ll=long long; typedef pair P; int main() { int x, k; cin>>x>>k; if(x==1){ printf("%.7lf\n", 1.0-pow(0.5, k+1)); }else{ assert(0); } return 0; }