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