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