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):
a = input()
b = input()
c = input()
l1 = ([i for i in a])
l2 = ([j for j in b])
l3 = ([t for t in c])
print(l1[0]+l2[1]+l3[2])

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

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

Solution (Python):
import math

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

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

print(''.join(s))

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

print(ans)

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

Solution (Python):
import sys

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

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

Solution (Python):
texts = list(map(str, open(0).read().split()))
print(texts[0][0] + texts[1][1] + texts[2][2])

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):
s1 = str( input() ) 
s2 = str( input() ) 
s3 = str( input() ) 
print( s1[0] + s2[1] + s3[2] )

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

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

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

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

for i in range(3):
    for j in range(3):
        if i == j:
            print(l[i][j], end='')
print("")

Solution (Python):
l = [0] * 3
for i in range(3):
    l[i] = list(input())
print(l[0][0], end='')
print(l[1][1], end='')
print(l[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()
b = input()
c = input()
ans = a[0] + b[1] + c[2]
print(ans)

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):
import sys
import numpy as np

stdin = sys.stdin
 
ri = lambda: int(rs())
rl = lambda: list(map(int, stdin.readline().split()))
rs = lambda: stdin.readline().rstrip()  

C = [rs() for _ in range(3)]
answer = C[0][0] + C[1][1] + C[2][2]
print(answer)

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

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):
a = [input() for i in range(3)]
print(a[0][0]+a[1][1]+a[2][2])

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

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

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

Solution (Python):





a = list(input())
b = list(input())
c = list(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):
lst = []
for i in range(3):
  lst.append(list(input()))
print(''.join(lst[i][i] for i in range(3)))

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

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

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

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

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

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

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

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

Solution (Python):
s = input()
t = input()
u = input()

print("".join([s[0], t[1], u[2]]))

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

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

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

Solution (Python):
c_one = str(input())
c_two = str(input())
c_thr = str(input())

ans = c_one[0] + c_two[1] + c_thr[2]
print(ans)

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

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

Solution (Python):

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

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

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

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

Solution (Python):
t = input()
m = input()
b = input()
print(t[:1]+m[1:2]+b[2:])

Solution (Python):
c = list()
c.append(list(input()))
c.append(list(input()))
c.append(list(input()))

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

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

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

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

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

print('{}{}{}'.format(l[0][0],l[1][1],l[2][2]))

Solution (Python):

c1 = str(input())
c2 = str(input())
c3 = str(input())
print(''.join(map(str,[c1[0],c2[1],c3[2]])))

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

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

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

print(ans)

Solution (Python):

import math






S1 = str(input())
S2 = str(input())
S3 = str(input())

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

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

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):
s = ""
for _ in range(3):
    s += input()
ans = ""
ans += s[0]
ans += s[4]
ans += s[8]
print(ans)

Solution (Python):

import sys, math, itertools, heapq, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
sys.setrecursionlimit(10**8)
inf = float('inf')
ans = count = 0
abc=[]
for i in range(3):
    l=list(input())
    abc.append(l[i])
print(*abc,sep="")

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

Solution (Python):
passa = [list(input())for _ in range(3)]
ans = []
for i in range(3):
  ans.append(passa[i][i])
print("".join(ans))

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):
a=input()
b=input()
c=input()
print(a[0]+b[1]+c[2])

Solution (Python):
def examA():
    C = [S() for _ in range(3)]
    ans = C[0][0]+C[1][1]+C[2][2]
    print(ans)


import sys,copy,bisect,itertools,heapq,math
from heapq import heappop,heappush,heapify
from collections import Counter,defaultdict,deque
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
def LSI(): return list(map(str,sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def S(): return sys.stdin.readline().strip()
mod = 10**9 + 7
inf = float('inf')

examA()

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

Solution (Python):
from sys import stdin
import numpy as np
import math

a = stdin.readline().rstrip()
b = stdin.readline().rstrip()
c = stdin.readline().rstrip()

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):
c_1j = [_ for _ in input()]
c_2j = [_ for _ in input()]
c_3j = [_ for _ in input()]

print(c_1j[0] + c_2j[1] + c_3j[2])

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

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

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

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

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

Solution (Python):
c = [None] * 3

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

ans = ""

for i in range(3):
    ans += c[i][i]

print(ans)

Solution (Python):
import sys
def input(): return sys.stdin.readline().strip()

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

main()

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

Solution (Python):
c_1 = input()
c_2 = input()
c_3 = input()
print(c_1[0] + c_2[1] + c_3[2])

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

d = list(a)
e = list(b)
f = list(c)

print(d[0]+e[1]+f[2])

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

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

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

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

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

Solution (Python):
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1

def main():
    ss=[input() for _ in range(3)]
    print(ss[0][0]+ss[1][1]+ss[2][2])

main()

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

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

print(''.join(ans_l))

Solution (Python):


import sys










def main():
    s = [sys.stdin.readline().rstrip() for _ in range(3)]
    ans = ''.join([s[i][i] for i in range(3)])
    print(ans)

if __name__ == "__main__":
    
    main()

Solution (Python):

SA = input()
SB = input()
SC = input()
S = SA[0]+SB[1]+SC[2]
print(S)

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

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

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

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

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

counter = 0
f = None
s = None
t = None
for first, second, third in zip(c1, c2, c3):
  if counter == 0:
    f = first
    counter += 1
    continue
  if counter == 1:
    s = second
    counter += 1
    continue
  if counter ==2 :
    t = third
    
ans = f + s + t
print(ans)

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):
a=list(input())
b=list(input())
c=list(input())
print(a[0]+b[1]+c[2])

Solution (Python):
import sys
c = [[str(a) for a in l.strip()] for l in sys.stdin]
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):
C1 = input()
C2 = input()
C3 = 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):
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    a=STR()
    b=STR()
    c=STR()
    print(a[0]+b[1]+c[2])
if __name__ == '__main__':
    do()

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

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):
c1=input()
c2=input()
c3=input()

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

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

Solution (Python):
if __name__ == '__main__':

	s = ""
	for i in range(3):
		A = input()
		s += A[i]

	print(s)

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

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

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

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

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

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

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 = input()
s2 = input()
s3 = input()
print(s1[0]+s2[1]+s3[2])

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

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

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

Solution (Python):
one = input()
two = input()
three = input()

mes = one[0] + two[1] + three[2]

print(mes)

Solution (Python):
print(input()[0]+input()[1]+input()[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 = list()
for _ in range(3):
    c.append(input())


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

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

Solution (Python):
firstrow = list(input())
secondrow = list(input())
thirdrow = list(input())

print(firstrow[0]+secondrow[1]+thirdrow[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, b, c = [input() for _ in range(3)]

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

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

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

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):
print(input()[0]+input()[1]+input()[2])

Solution (Python):

c1 = list(map(str, input()))
c2 = list(map(str, input()))
c3 = list(map(str, input()))

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

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

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):
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):
from sys import stdin
data = []
for _ in range(3):
    data.append(input())
ans = data[0][0] + data[1][1] + data[2][2]
print(ans)

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

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

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

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

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

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

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

Solution (Python):
a = str(input())
b = str(input())
c = str(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):
S = [input() for _ in range(3)]
ans = "".join([S[i][i] for i in range(3)])
print(ans)

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

print("{}{}{}".format(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().split() for l in range(3)]
print(a[0][0][0]+a[1][0][1]+a[2][0][2])

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

Solution (Python):

S = input()
SS = input()
SSS = input()
print(S[0] + SS[1] + SSS[2])

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

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

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

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

Solution (Python):
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd
from bisect import bisect

def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

a, b, c = list(input())
e, f, g = list(input())
h, i, j = list(input())

print(a, f, j, sep="")

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):
s=input()
a=input()
b=input()
print(s[0]+a[1]+b[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())
D = A[0]+B[1]+C[2]
print("".join(D))

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

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

aa090()

Solution (Python):
import sys

input = sys.stdin.readline


def main():
    print("".join([input()[0], input()[1], input()[2]]))


if __name__ == "__main__":
    main()

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

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

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

Solution (Python):
def slove():
    import sys
    input = sys.stdin.readline
    c = [list(str(input().rstrip('\n'))) for _ in range(3)]
    s = []
    for i in range(3):
        s.append(c[i][i])
    print("".join(s))


if __name__ == '__main__':
    slove()

Solution (Python):
n = str(input())
m = str(input())
l = str(input())
print(n[0]+m[1]+l[2])

Solution (Python):
S=[input() for i in range(3)];print(S[0][0]+S[1][1]+S[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):
c1 = input()
c2 = input()
c3 = input()

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

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

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):
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):
c1 = input()
c2 = input()
c3 = input()
print(c1[0] + c2[1] + c3[2])

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

Solution (Python):
line_1 = input()
line_2 = input()
line_3 = input()

print(line_1[0] + line_2[1] + line_3[2])

Solution (Python):

c1 = input()
c2 = input()
c3 = input()

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

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

Solution (Python):
c1 = str(input())
c2 = str(input())
c3 = str(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):
print(input()[0]+input()[1]+input()[2])

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):
print(''.join([input()[i] for i in range(3)]))

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

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

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

Solution (Python):
s = [input() for i in range(3)]
print(''.join([s[0][0],s[1][1],s[2][2]]))

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

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

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

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

Solution (Python):
a1=input() 
a2=input() 
a3=input() 
print(a1[0]+a2[1]+a3[2])

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

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

Solution (Python):

def main():
    *C, = open(0).read().split()
    ans = C[0][0] + C[1][1] + C[2][2]
    print(ans)


if __name__ == "__main__":
    main()

Solution (Python):
s=input()
t=input()
u=input()
print(s[0]+t[1]+u[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):
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
    

A=input()
B=input()
C=input()

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

Solution (Python):
C = open(0).read().split()
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()[0]
b=input()[1]
c=input()[2]
print(a+b+c)

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

s = ''
for i in range(3):
    s += c[i][i]
print(s)

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()
c = list(c1+c2+c3)

print(c[0]+c[4]+c[8])

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

Solution (Python):
a=[list(input()) for _ 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):
S = [input().strip() for _ in range(3)]
print(*[S[i][i] for i in range(3)], sep='')

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):
print(''.join([input()[i] for i in range(3)]))

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

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

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

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

c1 = list(c1)
c2 = list(c2)
c3 = list(c3)

print(c1[0],end='')
print(c2[1],end='')
print(c3[2],end='')

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

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

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

Solution (Python):
print(open(0).read()[::5])

Solution (Python):
s1 = list(input())
s2 = list(input())
s3 = list(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):
ans = ''
for i in range(3):
  ans += input()[i]
print(ans)

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):
c=[]
for i in range(3):
    c.append(list(input()))
print(c[0][0] + c[1][1] + c[2][2])

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

Solution (Python):
a=input()
b=input()
c=input()
ans=[]
ans.append(list(a))
ans.append(list(b))
ans.append(list(c))
total=[ans[0][0],ans[1][1],ans[2][2]]
total=''.join(total)
print(total)

Solution (Python):
a=input()
b=input()
c=input()
aa=list(a)
bb=list(b)
cc=list(c)
ans=[]
ans.append(aa[0])
ans.append(bb[1])
ans.append(cc[2])
ans=''.join(ans)

print(ans)

Solution (Python):
list1 = input()
list2 = input()
list3 = input()

line = list1[0] + list2[1] + list3[2]
print(line)

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

Solution (Python):
import numpy as np
c = np.array
c = [list(input()) for i in range(3)]

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

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

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

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

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

s_list = []

for i, C in enumerate([C1, C2, C3]):
    s_list.append(C[i])

print(''.join(s_list))

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

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

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

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

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

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

Solution (Python):

C1 = list(str(input()))
C2 =list(str(input()))
C3 =list(str(input()))

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

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

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

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

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):
s = [input() for i in range(3)]

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

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):
a =[]
b = []
for i in range(0,3):
    a.append(input())
for i in range(0,3):
   b.append(a[i][i])
print(''.join(b))

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

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):
matrix = []
for i in range(3):
    matrix.append([])
    something = input()
    for j in range(len(something)):
        matrix[i].append(something[j])
output = ""
for i in range(len(matrix)):
    for j in range(len(matrix[i])):
        if i == j:
            output += matrix[i][j]
print(output)

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

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

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

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

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

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

Solution (Python):
ans = []
for i in range(3):
  ans.append(input()[i])
print("".join(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):
S1 = input()
S2 = input()
S3 = input()
print(S1[0] + S2[1] + S3[2])

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

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

Solution (Python):
a,b,c=open(0);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 = str(input())
b = str(input())
c = str(input())
if len(a) == len(b) == len(c) == 3:
    moji = a[0] + b[1] + c[2]
    print(moji)
else:
    print('hoge!')

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

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

i=0
for s in S:
  print(s[i],end='')
  i+=1

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

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

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

Solution (Python):
import sys
from statistics import *
from collections import *
from operator import itemgetter
stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

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

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

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

Solution (Python):
cs0 = input()
cs1 = input()
cs2 = input()
r = cs0[0]+cs1[1]+cs2[2]
print(r)

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

Solution (Python):


c1 = list(input())
c2 = list(input())
c3 = list(input())

ans = c1[0]+c2[1]+c3[2]

print(ans)

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

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

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

Solution (Python):
a, _, _ = input()
_, b, _ = input()
_, _, c = input()
print(a+b+c)

Solution (Python):
c1=list(map(str, input()))
c2=list(map(str, input()))
c3=list(map(str, input()))

print(c1[0],c2[1],c3[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 = list(input() for i in range(3))

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

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

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


if __name__ == "__main__":
    resolve()

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

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

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):
s = [input() for _ in range(3)]
result = s[0][0]+s[1][1]+s[2][2]
print(result)

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

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

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

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

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

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

Solution (Python):
if __name__ == '__main__':
    s =[list(input()) for i in range(3)]

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

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