def check(i,j): t=[0]*5 for x in range(4): t[d[i][x]]=1 #检查同一行 t[d[x][j]]=1 #检查同一列 #检查对角线 if i<=1 and j<=1: t[d[1-i][1-j]]=1 elif i<=1 and j>=2: t[d[1-i][5-j]]=1 elif i>=2 and j<=1: t[d[5-i][1-j]]=1 elif i>=2 and j>=2: t[d[5-i][5-j]]=1 k=0 for a in range(1,5): if t[a]==0: __________ else: k+=1 if __________: return n else: return 0 d=[[0 for j in range(4) ] for i in range(4) ] for i in range(4): d[i]=list(map(int,input().split(","))) flag=False while __________: flag=True for i in range(4): for j in range(4): if d[i][j]==0: d[i][j]=check(i,j) if __________: flag=False for i in range(4): for j in range(4): print(d[i][j],end=" ") print(" ")