#41546: itertools萬歲


12ycoder (即將進入top 2000!)


部分程式:

a = int(input())
for i in itertools.product('01', repeat=a):
print(''.join(i))