s="! "
for a in [False, True]:
for b in [False, True]:
print (s[a],s[b],s[a^b])
for a in [False, True]:
for b in [False, True]:
for c in [False, True]:
print (s[a],s[b],s[c],s[not(a^b^c)])
for a in [False, True]:
for b in [False, True]:
for c in [False, True]:
for d in [False, True]:
print (s[a],s[b],s[c],s[d],s[a^b^c^d])
for a in [False, True]:
for b in [False, True]:
for c in [False, True]:
for d in [False, True]:
for e in [False, True]:
print (s[a],s[b],s[c],s[d],s[e],s[not(a^b^c^d^e)])