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