z = [int(input()) for i in range(100)]
for i in range(len(z)):
if z[i] == -1 or z[i] == 1:
z[i] == 0
print(z)
z = [int(input()) for i in range(100)]
for i in range(len(z)):
if z[i] == -1 or z[i] == 1:
z[i] == 0
print(z)