Problem:
 Score : 100 points    Problem Statement We have a 3×3 square grid, where each square contains a lowercase English letters.
The letter in the square at the i -th row from the top and j -th column from the left is c_{ij} .  Print the string of length 3 that can be obtained by concatenating the letters in the squares on the diagonal connecting the top-left and bottom-right corner of the grid, from the top-left to bottom-right.      Constraints  Input consists of lowercase English letters.         Input Input is given from Standard Input in the following format:  c_{11}c_{12}c_{13}  c_{21}c_{22}c_{23}  c_{31}c_{32}c_{33}       Output Print the string of length 3 that can be obtained by concatenating the letters on the diagonal connecting the top-left and bottom-right corner of the grid, from the top-left to bottom-right.        Sample Input 1 ant
obe
rec      Sample Output 1 abc  The letters in the squares on the diagonal connecting the top-left and bottom-right corner of the grid are a , b and c from top-right to bottom-left. Concatenate these letters and print abc .       Sample Input 2 edu
cat
ion      Sample Output 2 ean

Solution (Python):
c = [list(input()) for _ in range(3)]
print(c[0][0]+c[1][1]+c[2][2])

Solution (Python):
a,b,c = [input() for i in range(3)]
ans = a[0]+b[1]+c[2]
print(ans)

Solution (Python):
a=input()
b=input()
c=input()
print(a[0]+b[1]+c[2])

Solution (Python):
a=input()
b=input()
c=input()

print(a[0]+b[1]+c[2])

Solution (Python):
S =''
S +=input()[0]
S +=input()[1]
S +=input()[2]
print(S)

Solution (Python):


def read_input():
    c1 = input()
    c2 = input()
    c3 = input()

    return [c1, c2, c3]

def submit():
    c = read_input()

    print(''.join([c[i][i] for i in range(3)]))



if __name__ == '__main__':
    submit()

Solution (Python):
c1 = input()
c2 = input()
c3 = input()
print(c1[0]+c2[1]+c3[2])

Solution (Python):
a = input()
b = input()
c = input()
print(a[0]+b[1]+c[2])

Solution (Python):
c=[input() for i in range(3)]
print(c[0][0]+c[1][1]+c[2][2])

Solution (Python):
a=input()
b=input()
c=input()
print(a[0]+b[1]+c[2])

Solution (Python):
a = input()
b = input()
c = input()

print(a[0]+b[1]+c[2])

Solution (Python):
a=input()
f=input()
j=input()
print(a[0]+f[1]+j[2])

Solution (Python):
c=list()
for i in range(3):
	c.append(input())
for i in range(3):
	print(c[i][i],end="")
print()

Solution (Python):
a,b,c=[list(input()) for i in range(3)]
print(a[0]+b[1]+c[2])

Solution (Python):
s = ""
for i in range(3):
    c = list(input())
    s += c[i]
print(s)

Solution (Python):
def main():
	c0 = input()
	c1 = input()
	c2 = input()
	print(c0[0]+c1[1]+c2[2])


if __name__ == '__main__':
	main()

Solution (Python):
def main():
	c0 = input()
	c1 = input()
	c2 = input()
	print(c0[0]+c1[1]+c2[2])

if __name__ == '__main__':
	main()

Solution (Python):
c1 = list(input())
c2 = list(input())
c3 = list(input())
print(c1[0] + c2[1] + c3[2])

Solution (Python):
print(input()[0],end="")
print(input()[1],end="")
print(input()[2],end="")
print()

Solution (Python):
print(input()[0] + input()[1] + input()[2])

Solution (Python):
a = input()
b = input()
c = input()

print(a[0]+b[1]+c[2])

Solution (Python):
c1,c2,c3=list(input()),list(input()),list(input())
print(c1[0]+c2[1]+c3[2])

Solution (Python):
l1=input()
l2=input()
l3=input()
ans=l1[0]+l2[1]+l3[2]
print(ans)

Solution (Python):
c = [list(input()) for i in range(3)]
print(c[0][0] + c[1][1] + c[2][2])

Solution (Python):
a = input()
b = input()
c = input()
print(a[0] + b[1] + c[2])

Solution (Python):
c = [input() for i in range(3)]
print(c[0][0] + c[1][1] + c[2][2])

Solution (Python):
s1 = list(str(input()))
s2 = list(str(input()))
s3 = list(str(input()))
print(s1[0] + s2[1] + s3[2])

Solution (Python):
c = [input() for _ in range(3)]
a = ''
for i in range(3):
  a += c[i][i]
print(a)

Solution (Python):
a=[input() for i in range(3)]
print(a[0][0]+a[1][1]+a[2][2])

Solution (Python):
i=input;print((i()+i()+i())[::4])

Solution (Python):
print((input()+input()+input())[::4])

Solution (Python):
a=input()[0]
a+=input()[1]
a+=input()[2]
print(a)

Solution (Python):
print(input()[0]+input()[1]+input()[2])

Solution (Python):
a,b,c=[input() for i in range(3)]
print(a[0]+b[1]+c[2])

Solution (Python):
a=input()
b=input()
c=input()
print(a[0]+b[1]+c[2])

Solution (Python):
s = [input() for i in range(3)]

print(s[0][0] + s[1][1] + s[2][2])

Solution (Python):
import sys
input = sys.stdin.readline

a = input()[0]
b = input()[1]
c = input()[2]

print(a + b + c)

Solution (Python):
import functools

import os

INF = float('inf')


def inp():
    return int(input())


def inpf():
    return float(input())


def inps():
    return input()


def inl():
    return list(map(int, input().split()))


def inlf():
    return list(map(float, input().split()))


def inls():
    return input().split()


def debug(fn):
    if not os.getenv('LOCAL'):
        return fn

    @functools.wraps(fn)
    def wrapper(*args, **kwargs):
        print('DEBUG: {}({}) -> '.format(
            fn.__name__,
            ', '.join(
                list(map(str, args)) +
                ['{}={}'.format(k, str(v)) for k, v in kwargs.items()]
            )
        ), end='')
        ret = fn(*args, **kwargs)
        print(ret)
        return ret

    return wrapper


a = inps()
b = inps()
c = inps()
print(a[0] + b[1] + c[2])

Solution (Python):
a = input()[0]
b = input()[1]
c = input()[2]
print(a+b+c)

Solution (Python):
c = []
for i in range(3):
    c.append(input())
ans = ''
for i in range(3):
    ans += c[i][i]
print(ans)

Solution (Python):
a = input()
b = input()
c = input()
print(a[0] + b[1] + c[2])

Solution (Python):
c = [input() for _ in range(3)]

print(c[0][0] + c[1][1] + c[2][2])

Solution (Python):
c = [input() for i in range(3)]
print(c[0][0]+c[1][1]+c[2][2])

Solution (Python):
c1=input()
c2=input()
c3=input()

print(c1[0]+c2[1]+c3[2])

Solution (Python):
a = raw_input()
b = raw_input()
c = raw_input()
print a[0] + b[1] + c[2]

Solution (Python):

data = [input().rstrip() for _ in range(3)]
print(data[0][0], data[1][1], data[2][2], sep='')

Solution (Python):
answer = input()[0]
answer += input()[1]
answer += input()[2]
print(answer)

Solution (Python):
A=[input() for i in range(3)]
print(A[0][0]+A[1][1]+A[2][2])

Solution (Python):
a=input()
b=input()
c=input()
print(a[0]+b[1]+c[2])

Solution (Python):
a = input()
b = input()
c = input()

print(a[0]+b[1]+c[2])

Solution (Python):
S = [input()[i] for i in range(3)]
print("".join(S))

Solution (Python):
c1=list(input())
c2=list(input())
c3=list(input())

print(c1[0]+c2[1]+c3[2])

Solution (Python):
c_1 = input()
c_2 = input()
c_3 = input()

print("{}{}{}".format(c_1[0], c_2[1], c_3[2]))

Solution (Python):
x, y, z = input(), input(), input()
print(x[0] + y[1] + z[2])

Solution (Python):
A, B, C = [input() for i in range(3)]

print(A[0] + B[1] + C[2])

Solution (Python):
A,B,C = [input() for i in range(3)]
a = [A[:1], A[1:2], A[2:]]
b = [B[:1], B[1:2], B[2:]]
c = [C[:1], C[1:2], C[2:]]
print(a.pop(0) + b.pop(1) + c.pop(2))

Solution (Python):
C=[]
for i in range(3):
  C.append(list(input()))
print(C[0][0]+C[1][1]+C[2][2])

Solution (Python):
C = [input() for _ in range(3)]
print(''.join([C[i][i] for i in range(3)]))

Solution (Python):
a = list(input())[0]
b = list(input())[1]
c = list(input())[2]
print(a + b + c)

Solution (Python):
a=input()
b=input()
c=input()
print(a[0]+b[1]+c[2])

Solution (Python):
a=input()
b=input()
c=input()
A=a[0]
B=b[1]
C=c[2]
print(A+B+C)

Solution (Python):
a = input()
b = input()
c = input()
print(a[0] + b[1] + c[2])

Solution (Python):
a=input()
b=input()
c=input()
print(a[0]+b[1]+c[2])

Solution (Python):
a = input()
b = input()
c = input()
print(a[0]+b[1]+c[2])

Solution (Python):
a = input()
b = input()
c = input()
print(a[0] + b[1] + c[2])

Solution (Python):


i = 0
for _ in range(3):
    print(input()[i], end = '')
    i += 1

Solution (Python):
ans = ''
for i in range(3):
    tmp = list(input())
    ans += tmp[i]
print(ans)

Solution (Python):
s = ''
s += input()[0]
s += input()[1]
s += input()[2]
print(s)

Solution (Python):
a = list(input())
b = list(input())
c = list(input())
print(a[0]+b[1]+c[2])

Solution (Python):
print(input()[0]+input()[1]+input()[2])

Solution (Python):
a = input()
b = input()
c = input()
print(a[0] + b [1] + c[2])

Solution (Python):
List = list(input() for i in range(3))
print(List[0][0]+List[1][1]+List[2][2])

Solution (Python):
ans = ""
for i in range(3):
    ans += input()[i]
print(ans)

Solution (Python):
print("".join([list(input())[i] for i in range(3)]))

Solution (Python):
r1 = input()
r2 = input()
r3 = input()

print(r1[0] + r2[1] + r3[2])

Solution (Python):
c_one = input()
c_two = input()
c_three = input()
print(c_one[0] + c_two[1] + c_three[2])

Solution (Python):
A=input()
B=input()
C=input()

print(A[0]+B[1]+C[-1])

Solution (Python):
c = [input() for i in range(3)]
print(c[0][0]+c[1][1]+c[2][2])

Solution (Python):

S1=input()[0]
S2=input()[1]
S3=input()[2]
print(S1+S2+S3)

Solution (Python):
s1=input()
s2=input()
s3=input()
print(s1[0]+s2[1]+s3[2])

Solution (Python):
a=input()
b=input()
c=input()
print(a[0]+b[1]+c[2])

Solution (Python):
s = ''
for i in range(3): s += input()[i]
print(s)

Solution (Python):
a = input()
b = input()
c = input()
print(a[0] + b[1] + c[2])

Solution (Python):
n = 3
C = [None] * 3
for i in range(n):
  C[i] = input()[i]

print(''.join(C))

Solution (Python):
c = [input() for _ in range(3)]
print(c[0][0] + c[1][1] + c[2][2])

Solution (Python):
c = [input() for _ in range(3)]
print(c[0][0] + c[1][1] + c[2][2])

Solution (Python):
S = [input() for _ in range(3)]
print(S[0][0]+S[1][1]+S[2][2])

Solution (Python):
a, b, c=input()
d, e, f=input()
g, h, i=input()
print(a+e+i)

Solution (Python):
a = input()
b = input()
c = input()
print(a[0]+b[1]+c[2])

Solution (Python):
c = [input() for _ in range(3)]
print(c[0][0]+c[1][1]+c[2][2])

Solution (Python):
s = [input() for _ in range(3)]
for i in range(3):
  print(s[i][i], end='')
print('')

Solution (Python):
c1 = input()
c2 = input()
c3 = input()

print(c1[0]+c2[1]+c3[2])

Solution (Python):
C1 = input()
C2 = input()
C3 = input()

print(C1[:1] + C2[1:2] + C3[2:])

Solution (Python):
a=input()[0]
b=input()[1]
c=input()[2]
print(a+b+c)

Solution (Python):
c1 = input()
c2 = input()
c3 = input()
print(c1[0]+c2[1]+c3[2])

Solution (Python):
print(input()[0] + input()[1] + input()[2])

Solution (Python):
a = input()
b = input()
c = input()

print(a[0]+b[1]+c[2])

Solution (Python):
c1 = input()
c2 = input()
c3 = input()

print(c1[0]+c2[1]+c3[2])

Solution (Python):
c=[]
for i in range(3):
    c.append(list(str(input())))
print(str(c[0][0]), str(c[1][1]), str(c[2][2]), sep="")

Solution (Python):
c1 = input()
c2 = input()
c3 = input()

print(c1[0] + c2[1] + c3[2])

Solution (Python):
moji = []
for i in range(3):
        c = str(input())
        moji.append(c[i])
print("".join(moji))

Solution (Python):
i=input;print(''.join((i()[0],i()[1],i()[2])))

Solution (Python):
a=input()
b=input()
c=input()
print(a[0]+b[1]+c[2])

Solution (Python):
a = input()
b = input()
c = input()
print(a[0] + b[1] + c[2])

Solution (Python):
a=[]
a=list(input())
b=[]
c=[]
b=list(input())
c=list(input())
print(a[0]+b[1]+c[2])

Solution (Python):
A=eval('input(),'*3)
print(''.join([A[i][i] for i in range(3)]))

Solution (Python):
c1 = input()
c2 = input()
c3 = input()
ans = c1[0] + c2[1] + c3[2]
print(ans)

Solution (Python):
output = ''
for i in range(3):
  output += input()[i:i+1]
print(output)

Solution (Python):
for i in range(3):
  print(input()[i], end="")
print("")

Solution (Python):
result = ""
for i in range(0, 3):
    a = input()
    result += a[i]

print(result)

Solution (Python):
C = [list(input()) for _ in range(3)]
print(C[0][0]+C[1][1]+C[2][2])

Solution (Python):
ans = ""
cnt = 0
for i in range(3):
    s = input()
    ans += s[cnt]
    cnt += 1
print(ans)

Solution (Python):

rac_count = 3
rac_all = [input() for a in range(rac_count)]

rac_0 = list(rac_all[0])
rac_1 = list(rac_all[1])
rac_2 = list(rac_all[2])

rac_0.extend(rac_1)
rac_0.extend(rac_2)

print(str(rac_0[0] + rac_0[4] + rac_0[8]))

Solution (Python):

rac_count = 3
rac_all = [input() for a in range(rac_count)]

rac_0 = rac_all[0]
rac_1 = rac_all[1]
rac_2 = rac_all[2]

rac_0_0 = list(rac_0)
rac_1_1 = list(rac_1)
rac_2_2 = list(rac_2)

rac_0_0.extend(rac_1_1)
rac_0_0.extend(rac_2_2)

print(str(rac_0_0[0] + rac_0_0[4] + rac_0_0[8]))

Solution (Python):
print(input()[0]+input()[1]+input()[2])

Solution (Python):
c=""
for i in range(0,3):
    f=input()
    c+=f[i]
print(c)

Solution (Python):
s = ""
for i in range(3):
    argv = input()
    s += argv[i]
print(s)

Solution (Python):
a = input()
b = input()
c = input()
print(a[0]+b[1]+c[2])

Solution (Python):
c1 = input()
c2 = input()
c3 = input()
print(c1[0] + c2[1] + c3[2])

Solution (Python):


a = list(input())
b = list(input())
c = list(input())

abc = a[0] + b[1] + c[2]
abc = "".join(abc)

print(abc)

Solution (Python):
c1 = input()
c2 = input()
c3 = input()
print(c1[0]+c2[1]+c3[2])

Solution (Python):
for _ in range(3):print(input()[_],end="")

Solution (Python):
a = input()
b = input()
c = input()
print(a[0] + b[1] + c[2])

Solution (Python):
a,b,c=[input() for _ in range(3)]
print(a[0]+b[1]+c[2])

Solution (Python):
A=list(input())
B=list(input())
C=list(input())
print(A[0]+B[1]+C[2])

Solution (Python):
print(''.join(s[i] for i, s in enumerate(input() for _ in range(3))))

Solution (Python):
c1 = input()
c2 = input()
c3 = input()
print(c1[0]+c2[1]+c3[2])

Solution (Python):
c=[input() for i in range(3)]
print(c[0][0]+c[1][1]+c[2][2])

Solution (Python):
c = [list(input()) for i in range(3)]
print(c[0][0]+c[1][1]+c[2][2])

Solution (Python):
l = [input() for i in range(3)]

print(l[0][0]+l[1][1]+l[2][2])

Solution (Python):
c1=input()
c2=input()
c3=input()
print(c1[0]+c2[1]+c3[2])

Solution (Python):

C1 = input()
C2 = input()
C3 = input()

print(C1[0] + C2[1] + C3[2])

Solution (Python):
a = input()
b = input()
c = input()
print(a[0]+b[1]+c[2])

Solution (Python):
a = input()
b = input()
c = input()

print(a[0]+b[1]+c[2])

Solution (Python):
a = input()
b = input()
c = input()
print(a[0]+b[1]+c[2])

Solution (Python):
def solve(string):
    c = "".join(string.split())
    return c[0] + c[4] + c[-1]


if __name__ == '__main__':
    n = 3
    print(solve('\n'.join([input() for _ in range(n)])))

Solution (Python):
print(''.join([input()[i] for i in range(3)]))

Solution (Python):
print(str(input())[0]+str(input())[1]+str(input())[2])

Solution (Python):
s1 = input()
s2 = input()
s3 = input()
print(s1[0],s2[1],s3[2], sep="")

Solution (Python):
s=''
for i in range(3):
    s+=input()[i]
print(s)

Solution (Python):
print(input()[0]+input()[1]+input()[2])

Solution (Python):
ls=[input() for i in range(3)]
print(ls[0][0]+ls[1][1]+ls[2][2])

Solution (Python):
one=input()
two=input()
three=input()
ans=one[0]+two[1]+three[2]
print(ans)

Solution (Python):
a = input()
b = input()
c = input()

print(a[0]+b[1]+c[2])

Solution (Python):
print(input()[0] + input()[1] + input()[2])

Solution (Python):
a = input()
b = input()
c = input()
print(a[0]+b[1]+c[2])

Solution (Python):
c = [input() for i in range(3)]
print(c[0][0] + c[1][1] + c[2][2])

Solution (Python):
print(input()[0]+input()[1]+input()[2])

Solution (Python):
row1 = input()
row2 = input()
row3 = input()
print(row1[0]+row2[1]+row3[2])

Solution (Python):
A = input()
B = input()
C = input()
s = A[0] + B[1] + C[2]
print(s)

Solution (Python):
a,b,c=input(),input(),input();print(a[0]+b[1]+c[2])

Solution (Python):
a = list(input())
b = list(input())
c = list(input())
print(a[0],end="")
print(b[1],end="")
print(c[2])

Solution (Python):
print(input()[0]+input()[1]+input()[2])

Solution (Python):
a=str(input())
b=str(input())
c=str(input())
print(a[0]+b[1]+c[2])

Solution (Python):
a = input()
b= input()
c = input()
print(a[0] + b[1] + c[2])

Solution (Python):
a,b,c=[input() for i in range(3)]
print(a[0]+b[1]+c[2])

Solution (Python):

a = [input() for i in range(3)]
print(a[0][0]+a[1][1]+a[2][2])

Solution (Python):
import cmath

INF=1e18
MOD=1e9+7


s=input()
t=input()
u=input()

print(s[0]+t[1]+u[2])

Solution (Python):
c = [input() for i in range(3)]
print(c[0][0]+c[1][1]+c[2][2])

Solution (Python):
arr  = [list(input()) for i in range(3)]
print(arr[0][0] + arr[1][1] + arr[2][2])

Solution (Python):
c = [input() for _ in range(3)]
for i in range(3):
    print(c[i][i],end="")

Solution (Python):
print(input()[0] + input()[1] + input() [2])

Solution (Python):
l = [list(input()) for i in range(3)]
print(l[0][0]+l[1][1]+l[2][2])

Solution (Python):
a = input()
b = input()
c = input()
print(a[0]+b[1]+c[2])

Solution (Python):
ans = ''
for i in range(3): ans+=input()[i]
print(ans)

Solution (Python):
c1 = input()
c2 = input()
c3 = input()

print(c1[0]+c2[1]+c3[2])

Solution (Python):
def diagonal_string(C: list) -> str:
    return ''.join(C[i][i] for i in range(3))


if __name__ == "__main__":
    C = [input() for _ in range(3)]
    ans = diagonal_string(C)
    print(ans)

Solution (Python):
a=input()[0]
b=input()[1]
c=input()[2]
print(a+b+c)

Solution (Python):
import sys
lines = sys.stdin.readlines()
ans = []
for i, l in enumerate(lines):
  ans.append(l[i])
print(''.join(ans))

Solution (Python):
a=input()
b=input()
c=input()
print(a[0]+b[1]+c[2])

Solution (Python):
s=[input() for _ in range(3)]
print(''.join([s[i][i] for i in range(3)]))

Solution (Python):
f = input()
s = input()
t = input()
print(f[0]+s[1]+t[2])

Solution (Python):
a,b,c=[list(input()) for _ in range(3)]
print(a[0]+b[1]+c[2])

Solution (Python):
a = input()[0:1]
b = input()[1:2]
c = input()[2:3]
print(a + b + c)

Solution (Python):
metrix=[[j for j in input()] for i in range(3)]
print(metrix[0][0]+metrix[1][1]+metrix[2][2])

Solution (Python):
s1 = input()
s2 = input()
s3 = input()

print(s1[0]+s2[1]+s3[2])

Solution (Python):
c = [input() for _ in range(3)]
print(c[0][0] + c[1][1] + c[2][2])

Solution (Python):
c = []
for i in range(3):
    c.append(list(input()))
print(c[0][0] + c[1][1] + c[2][2])

Solution (Python):
a = input()
b = input()
c = input()
print(a[0] + b[1] + c[2])

Solution (Python):
a=input()
b=input()
c=input()
print(a[0]+b[1]+c[2])

Solution (Python):
lst = [input() for _ in range(3)]
for i in range(3):
  print(lst[i][i], end = "")
print()

Solution (Python):
c1 = list(input())
c2 = list(input())
c3 = list(input())
print(c1[0]+c2[1]+c3[2])

Solution (Python):
s1 = input()
s2 = input()
s3 = input()
ans = s1[0] + s2[1] + s3[2]
print(ans)

Solution (Python):
c=[]
for i in range(3):
    ci=input()
    c.append(ci)
print(c[0][0]+c[1][1]+c[2][2])

Solution (Python):


import itertools
import collections
import bisect

def main():
    one = input()
    two = input()
    thr = input()
    print(one[0] + two[1] + thr[2])

if __name__ == '__main__':
    main()

Solution (Python):
import sys
write = sys.stdout.write

for i in range(3):
    temp = input()
    write(temp[i])
write("\n")

Solution (Python):
def main():
    A = input()
    B = input()
    C = input()
    print(A[0] + B[1] + C[2])


if __name__ == "__main__":
    main()

Solution (Python):
a,b,c=[input() for i in range(3)]
print(a[0]+b[1]+c[2])

Solution (Python):
print(input()[0]+input()[1]+input()[2])

Solution (Python):

S = [input() for _ in range(3)]
print(S[0][0] + S[1][1] + S[2][2])

Solution (Python):
import sys

def main():
    input = sys.stdin.readline
    ans = ''
    for i in range(3):
        S = str(input().strip())
        ans += S[i]
    print(ans)

if __name__ == '__main__':
    main()

Solution (Python):
C = [input() for _ in range(3)]

print(C[0][0]+C[1][1]+C[2][2])

Solution (Python):
A = input()
B = input()
C = input()

print(A[0]+B[1]+C[2])

Solution (Python):
a=list(input())
b=list(input())
c=list(input())
print(a[0]+b[1]+c[2])

Solution (Python):
print(input()[0]+input()[1]+input()[2])

Solution (Python):

c = [''] * 3
for i in range(3):
    c[i] = str(input())
print(c[0][0] + c[1][1] + c[2][2])

Solution (Python):
a=input()
b=input()
c=input()
print(a[0]+b[1]+c[2])

Solution (Python):
S = [input() for i in range(3)]
print(S[0][0] + S[1][1] + S[2][2])

Solution (Python):
C = [input() for _ in range(3)]
print(C[0][0] + C[1][1] + C[2][2])

Solution (Python):
for i in range(3):
  print(input()[i],end="")

Solution (Python):
a=[list(input()) for i in range(3)]
for i in range(3):
  print(a[i][i],end="")

Solution (Python):
list1 = []
list2 = []
for _ in range(3):
    list1.append(input())

for num, li_con in enumerate(list1):
    list2.append(li_con[num])

moji = "".join(list2)
print(moji)

Solution (Python):

c1 = list(input())
c2 = list(input())
c3 = list(input())
print(c1[0] + c2[1] + c3[2])

Solution (Python):
c = [input() for _ in range(3)]
print(c[0][0]+c[1][1]+c[2][2])

Solution (Python):
def main():
    print(input()[0] + input()[1] + input()[2])


main()

Solution (Python):

import sys
sys.setrecursionlimit(10**9)
input = sys.stdin.readline

s1 = input()
s2 = input()
s3 = input()
print(s1[0]+s2[1]+s3[2])

Solution (Python):
S1 = list(input())
S2 = list(input())
S3 = list(input())
print(S1[0]+S2[1]+S3[2])

Solution (Python):
s = [input() for _ in range(3)]
print(s[0][0] + s[1][1] + s[2][2])

Solution (Python):
ri = lambda: int(input())
rl = lambda: list(map(int,input().split()))

a = input()
b = input()
c = input()

print("{}{}{}".format(a[0],b[1],c[2]))

Solution (Python):
print(''.join([input()[i] for i in range(3)]))

Solution (Python):
l = [list(input()) for line in range(3)]

print(l[0][0] + l[1][1] + l[2][2])

Solution (Python):
from sys import stdin

data = [list(stdin.readline().rstrip()) for _ in range(3)]
print(data[0][0]+data[1][1]+data[2][2])

Solution (Python):
s_1=input()
s_2=input()
s_3=input()
print(s_1[0]+s_2[1]+s_3[2])

Solution (Python):
c_list = []
for i in range(0,3,1):
  a = str(input())
  c_list.append(a[i])
print(c_list[0]+c_list[1]+c_list[2])

Solution (Python):
cs = [ input() for _ in range(3) ]

ans = cs[0][0] + cs[1][1] + cs[2][2]

print(ans)
print()

Solution (Python):
def main():
    inputs = [input() for _ in range(3)]
    ans = ""
    for i, x in enumerate(inputs):
        ans += x[i]
    print(ans)


if __name__ == "__main__":
    main()

Solution (Python):
A=input()
B=input()
C=input()
a=A[:1]
b=B[1:2]
c=C[2:3]
print(a+b+c)

Solution (Python):
lst = [input() for x in range(3)]
print(lst[0][0] + lst[1][1] + lst[2][2])

Solution (Python):

ss = [input() for _ in range(3)]

for i in range(3):
    print(ss[i][i],end = '')

print()

Solution (Python):
c = [input() for _ in range(3)]
print(c[0][0]+c[1][1]+c[2][2])

Solution (Python):
print(input()[0]+input()[1]+input()[2])

Solution (Python):
print(input()[0],end='')
print(input()[1],end='')
print(input()[2],end='')
print('')

Solution (Python):
import bisect
import numpy as np
import sys
input = sys.stdin.readline
def IL(): return list(map(int,input().split()))
def SL(): return input().split()
def I(): return int(sys.stdin.readline())
def S(): return input()

a = S()
b = S()
c = S()

print(a[0]+b[1]+c[2])

Solution (Python):
a=input()
b=input()
c=input()
print(a[0]+b[1]+c[2])

Solution (Python):
a = list(input())
b = list(input())
c = list(input())

print(a[0]+b[1]+c[2])

Solution (Python):
ans=''
for i in range(3):
  s=input()
  ans+=s[i]
  
print(ans)

Solution (Python):
l1 = input()
l2 = input()
l3 = input()
print(l1[0]+l2[1]+l3[2])

Solution (Python):
a=list(input())
b=list(input())
c=list(input())
print(a[0]+b[1]+c[2])

Solution (Python):
C = [input() for _ in range(3)]
print(C[0][0] + C[1][1] + C[2][2])

Solution (Python):
c1 = input()
c2 = input()
c3 = input()

print( c1[0] + c2[1] + c3[2] )

Solution (Python):
c = [raw_input() for _ in range(3)]
print c[0][0]+c[1][1]+c[2][2]

Solution (Python):
c0 = input()
c1 = input()
c2 = input()

print(c0[0]+c1[1]+c2[2])

Solution (Python):
c = [0,0,0]
for i in range(3):
    c[i] = list(input().split())
    
print(c[0][0][0]+c[1][0][1]+c[2][0][2])

Solution (Python):
c1=input();c2=input();c3=input()
print(''.join([c1[0],c2[1],c3[2]]))

Solution (Python):
ar_a = list(input())
ar_b = list(input())
ar_c = list(input())
print(ar_a[0] + ar_b[1] + ar_c[2])

Solution (Python):
char = []
for i in range(3):
    char += list(input())
print(char[0] + char[4] + char[8])

Solution (Python):
arr = []
for i in range(3):
    str = input()
    arr.append(str[i])
print(''.join(arr))

Solution (Python):
c1=input()
c2=input()
c3=input()
print(c1[0]+c2[1]+c3[2])

Solution (Python):
N = 3
c = []
i = 0

for i in range(N):
	c.append(input().strip())

out = ""

for i in range(N):
    out = out + c[i][i]
    
print(out)

Solution (Python):
s1 = input()
s2 = input()
s3 = input()

print(s1[0] + s2[1] + s3[2])

Solution (Python):
A=input()
B=input()
C=input()
print(A[0]+B[1]+C[2])

Solution (Python):
s = [input() for i in range(3)]
print(s[0][0]+s[1][1]+s[2][2])

Solution (Python):
c1 = list(input())
c2 = list(input())
c3 = list(input())
d = (c1[0],c2[1],c3[2])
print("".join(d))

Solution (Python):
print(input()[0]+input()[1]+input()[2])

Solution (Python):
for i in range(3):
  hoge=input()
  print(hoge[i:i+1],end='')

Solution (Python):
s1=list(input())
s2=list(input())
s3=list(input())

print(s1[0]+s2[1]+s3[2])

Solution (Python):
c1 = input()
c2 = input()
c3 = input()
ans = c1[0] + c2[1] + c3[2]
print(ans)

Solution (Python):
c1 = input()
c2 = input()
c3 = input()

print( ''.join([c1[0], c2[1], c3[2]]) )

Solution (Python):
c = []
for i in range(3):
    c.append(list(input()))

a = ""
a += c[0][0]
a += c[1][1]
a += c[2][2]

print(a)

Solution (Python):
c = [input() for _ in range(3)]
print(c[0][0]+c[1][1]+c[2][2])

Solution (Python):
h1 = str(input())
h2 = str(input())
h3 = str(input())
print(h1[0] + h2[1] + h3[2])

Solution (Python):
c=[list(input()) for i in range(3)]
print(c[0][0]+c[1][1]+c[2][2])

Solution (Python):
a,b,c=[str(input()) for i in range(3)]
print(a[0]+b[1]+c[2])

Solution (Python):
c1 = input()
c2 = input()
c3 = input()
print(c1[0] + c2[1] + c3[2])

Solution (Python):
x,y,z = (input() for i in range(3))
print(x[0]+y[1]+z[2])

Solution (Python):
a=input()
b=input()
c=input()
print(a[0]+b[1]+c[2])

Solution (Python):
A=input()
B=input()
C=input()
print("{}{}{}".format(A[0],B[1],C[2]))

Solution (Python):
n = 3
ans = ""
for i in range(n):
    text = input()
    ans += text[i]

print(ans)

Solution (Python):
""" AtCoder """

c = [input() for _ in range(3)]

print(c[0][0]+c[1][1]+c[2][2])

Solution (Python):
a=input()
b=input()
c=input()

print(a[0]+b[1]+c[2])

Solution (Python):
s1=input()
s2=input()
s3=input()
print(s1[0]+s2[1]+s3[2])

Solution (Python):
s1=list(input())
print(s1[0],end='')
s2=list(input())
print(s2[1],end='')
s3=list(input())
print(s3[2])

Solution (Python):
c = [list(input()) for i in range(3)]

print(c[0][0],c[1][1],c[2][2],sep='')

Solution (Python):
a=input()
b=input()
c=input()

print(a[0]+b[1]+c[2])

Solution (Python):
C = [list(input()) for i in range(3)]
print(C[0][0] + C[1][1] + C[2][2])

Solution (Python):
a=['']*3
for i in range(3):
    a[i]=input()
b=[]
b.append(a[0][0])
b.append(a[1][1])
b.append(a[2][2])
ans=''.join(b)
print(ans)

Solution (Python):
b = []
for i in range(3):
    b.append(input())

for i in range(3):
    print(b[i][i], end='')
print()

Solution (Python):
C1 = input()
C2 = input()
C3 = input()
print(C1[0]+C2[1]+C3[2])

Solution (Python):
c_list = []
for i in range(3):
    c_list.append(input())

print(c_list[0][0] + c_list[1][1] + c_list[2][2])

Solution (Python):
c = []
for _ in [0]*3:
    c.append(list(input().rstrip()))
print(c[0][0], c[1][1], c[2][2], sep='')

Solution (Python):
c1=input()
c2=input()
c3=input()
print(c1[0]+c2[1]+c3[2])

Solution (Python):
a = input()
b = input()
c = input()
print(a[0]+b[1]+c[2])

Solution (Python):
c = [input() for _ in range(3)]
print(c[0][0]+c[1][1]+c[2][2])

Solution (Python):

lines=[input() for _ in range(3)]



print(lines[0][0]+lines[1][1]+lines[2][2])

Solution (Python):

lines=[input() for _ in range(3)]

print(lines[0][0]+lines[1][1]+lines[2][2])

Solution (Python):
a = ''
for i in range(3):
    a += input()
print(a[0]+a[4]+a[8])

Solution (Python):


def main():
    s0 = input()
    s1 = input()
    s2 = input()

    print(s0[0] + s1[1] + s2[2])


if __name__ == '__main__':
    main()

Solution (Python):
a=[input()for i in range(3)]
print(a[0][0]+a[1][1]+a[2][2])

Solution (Python):
a = list(str(input()))
b = list(str(input()))
c = list(str(input()))
print(a[0]+b[1]+c[2])

Solution (Python):
c1 = list(input())
c2 = list(input())
c3 = list(input())
print(c1[0]+c2[1]+c3[2])

Solution (Python):
a = input()
b = input()
c = input()

print(a[0]+b[1]+c[2])

Solution (Python):
a = input()
b = input()
c = input()
print(a[0]+b[1]+c[2])

Solution (Python):
def main():
  a = input()
  b = input()
  c = input()
  print(a[0]+b[1]+c[2])
  pass

if __name__ == '__main__':
  main()

Solution (Python):
a=input()
b=input()
c=input()

print(a[0]+b[1]+c[2])

Solution (Python):
l1 = input()
l2 = input()
l3 = input()
print(l1[0] + l2[1] + l3[2])

Solution (Python):
c = []
for i in range(3):
    c.append(input())
print(str(c[0][0]) + str(c[1][1])+ str(c[2][2]))

Solution (Python):
ans = ""
for i in range(3):
  ans += input()[i]
print(ans)

Solution (Python):
arr = [input() for i in range(3)]
print(arr[0][0]+arr[1][1]+arr[2][2])

Solution (Python):
l = [input() for i in range(3)]
print(l[0][0]+l[1][1]+l[2][2])

Solution (Python):
print(input()[0]+input()[1]+input()[2])

Solution (Python):
l=[input() for _ in range(3)]
for i in range(3):print(l[i][i],end="")

Solution (Python):
a = str(input())[0]
b = str(input())[1]
c = str(input())[2]
print(a+b+c)

Solution (Python):
c = [input() for _ in range(3)]
print(c[0][0] + c[1][1] + c[2][2])

Solution (Python):
ans_1 = input()
ans_2 = input()
ans_3 = input()
print(ans_1[0] + ans_2[1] + ans_3[2])

Solution (Python):
string=''
for i in range(3):
    string += input()[i]
print(string)

Solution (Python):
str1 = input()
str2 = input()
str3 = input()
print(str1[0] + str2[1] + str3[2])

Solution (Python):
a=input();b=input();c=input();print(a[0]+b[1]+c[2])

Solution (Python):
S=[input() for i in range(3)]
print(S[0][0]+S[1][1]+S[2][2])

Solution (Python):
s1 = input()
s2 = input()
s3 = input()
print(s1[0] + s2[1] + s3[2])

Solution (Python):
a = input().rstrip()
b = input().rstrip()
c = input().rstrip()

print(a[0] + b[1] + c[2])

Solution (Python):
a=input()
b=input()
c=input()
print(a[0]+b[1]+c[2])

Solution (Python):
a=list(input())
b=list(input())
c=list(input())
print(a[0]+b[1]+c[2])

Solution (Python):
def main():
    print(input()[0] + input()[1] + input()[2])


if __name__ == '__main__':
    main()

Solution (Python):
print(input()[0] + input()[1] + input()[2])

Solution (Python):
def abc090_a():
    c = [input() for _ in range(3)]
    print(c[0][0] + c[1][1] + c[2][2])


abc090_a()

Solution (Python):
a = input()
b = input()
c = input()

print(a[0] + b[1] + c[2])

Solution (Python):
c_list = [list(input()) for _ in range(3)]
result = ""
for i in range(len(c_list)):
    result += c_list[i][i]

print(result)

Solution (Python):
c = input()+input()+input()
print(c[0]+c[4]+c[8])

Solution (Python):



def main():
    """Function."""
    x1 = str(input())
    x2 = str(input())
    x3 = str(input())
    print(x1[0] + x2[1] + x3[2])


if __name__ == "__main__":
    main()

Solution (Python):

S = str(input())
T = str(input())
U = str(input())
print("{}".format(S[0]+T[1]+U[2]))

Solution (Python):
c1 = input()
c2 = input()
c3 = input()

print(c1[0]+c2[1]+c3[2])

Solution (Python):
a = str(input())
b = str(input())
c = str(input())

print(a[0]+b[1]+c[2])

Solution (Python):

a1 = input()
a2 = input()
a3 = input()

print('{}{}{}'.format(a1[0],a2[1],a3[2]))

Solution (Python):

print(''.join([input()[i] for i in range(3)]))

Solution (Python):
c1 = input()
c2 = input()
c3 = input()
print(c1[0]+c2[1]+c3[2])