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