for i in range(1, 6): for j in range(1, 6): if i == 3 and j == 3: print(0, end="") else: print(1, end=" ") print(" ")