#include using namespace std; double dfs(int m, double money) { return m ? dfs(m - 1, (money * 3 + 1) / 3) : money; } int main() { ios::sync_with_stdio(false); cin.tie(0); int m, n; cin >> m >> n; cout << fixed << setprecision(8) << dfs(n, m) << "\n"; return 0; }