M,N = [int(i) for i in input().split()] #期待値って積を取っていいんだっけ? E=M for i in range(N): E=E*2/3+(E+1)/3 print(E)