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