L, K = map(int, input().split()) for i in range(L): if L > K: K = K * 2 else: print(K)