#include #include #include int main() { using namespace std; double m; int n; cin >> m >> n; for (int i = 0; i < n; i++) { m = (2. * m + m + 1.) / 3.; } cout << fixed << setprecision(8) << m << endl; }