input으로 들어온 수 만큼 for 문을 돌려 2를 계속 곱해 나간다.
N = int(input()) i = 1 for i in range(N+1): print(2 ** i, end=' ')