satu=[None]*2
for i in range(2):
    satu[i]=[None]*2
for x in range(2):
    for y in range(2):
        satu[x][y]=int(input());
for hasil in satu:
    print (hasil)


dua=[None]*2
for i in range(2):
    dua[i]=[None]*2
for x in range(2):
    for y in range(2):
        dua[x][y]=int(input());
for hasil in dua:
    print (hasil)


11d06ecb1e133c15a6ec4245ab7d5c2f8d3635c2
<mask token>

<mask token>
for i in range(2):
    satu[i] = [None] * 2
for x in range(2):
    for y in range(2):
        satu[x][y] = int(input())
for hasil in satu:
    print(hasil)
<mask token>
for i in range(2):
    dua[i] = [None] * 2
for x in range(2):
    for y in range(2):
        dua[x][y] = int(input())
for hasil in dua:
    print(hasil)

satu = [None] * 2
for i in range(2):
    satu[i] = [None] * 2
for x in range(2):
    for y in range(2):
        satu[x][y] = int(input())
for hasil in satu:
    print(hasil)
dua = [None] * 2
for i in range(2):
    dua[i] = [None] * 2
for x in range(2):
    for y in range(2):
        dua[x][y] = int(input())
for hasil in dua:
    print(hasil)

satu=[None]*2
for i in range(2):
    satu[i]=[None]*2
for x in range(2):
    for y in range(2):
        satu[x][y]=int(input());
for hasil in satu:
    print (hasil)


dua=[None]*2
for i in range(2):
    dua[i]=[None]*2
for x in range(2):
    for y in range(2):
        dua[x][y]=int(input());
for hasil in dua:
    print (hasil)

