from itertools import product
b=0
for i in product(range(2),repeat=4):
    b+=1
    print(i)
print(b)