m, n = map(int, input().split()) for _ in [0]*n: m = (m*3+1)/3 print(m)