M, N = map(int,input().split())
m = M
for i in range(N):
    m = (1/3)*(m*2 + (m+1) + 0)
print(m)