#include using namespace std; typedef signed long long ll; #define ALL(a) (a.begin()),(a.end()) #define ZERO(a) memset(a, 0, sizeof(a)) #define MINUS(a) memset(a,0xff,sizeof(a)) #define SIZE(array) (sizeof(array) / sizeof(array[0])) #define FOR(i,a,b) for(int i=(a);i<(b);++i) #define REP(i,n) FOR(i,0,n) long mod = 1000000007L; auto cmp = [](pair> const & a, pair> const & b) { return a.second.second < b.second.second; }; signed main() { int n, m; cin >> n >> m; double t = n; REP(i, m) { t = double(t * 3 + 1) / 3.0; } cout << fixed << setprecision(10) << t; }