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



Sample input:
ant
obe
rec


Sample output:
abc

Submission status: Wrong Answer

Solution code:
l=input()
l1=input()
l2=input()
a=l[0],l1[1],l2[2]
print(*a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
i1=input()
i2=input()
i3=input()
print(i1[0],i2[1], i3[2])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print(open(0).read()[0::4])

Submission status: Wrong Answer

Solution code:
U=input()
M=input()
B=input()

print(U[0],M[1],B[2])

Submission status: Wrong Answer

Solution code:

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

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

Submission status: Wrong Answer

Solution code:
c = input()
d = input()
e = input()
ans = c[0] + d[1] + e[2]

Submission status: Wrong Answer

Solution code:
print (input()[0])
print (input()[1])
print (input()[2])

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
#%% for atcoder uniittest use
import sys
input= lambda: sys.stdin.readline().rstrip()
def pin(type=int):return map(type,input().split())
def tupin(t=int):return tuple(pin(t))
#%%code
def resolve():
    ans=""
    for i in range(3):
        ans+=input()[i]
    print(ans)

Submission status: Wrong Answer

Solution code:
A = list(input())
B = list(input())
C = list(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = raw_input()
b = raw_input()
c = raw_input()
print a[0], b[1], c[2]

Submission status: Wrong Answer

Solution code:
c=[input() for i in range(3)]
for i in range(0,3):
  print(c[i],end='')

Submission status: Wrong Answer

Solution code:
c=[input() for i in range(3)]
for i in range(3):
  print(c[i],end='')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
listi =[]
for i in range(9):
  listi.append(input)
print("{}{}{}".format(listi[0],listi[4],listi[8]))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
for i in range(3):
  print(input()[i])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
_ = input()
_ = input()
answer = input()
print(answer[-1])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print(input()[0]+input()[1]+input()[1])

Submission status: Wrong Answer

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

print("a[1]+b[2]+c[3]")

Submission status: Wrong Answer

Solution code:
a = list(input())
b = list(input())
c = list(input())
print(a[0] + b[0] + c[0])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print(input().strip().replace(" ", ''))

Submission status: Wrong Answer

Solution code:
print(input().strip().replace('\n',''))

Submission status: Wrong Answer

Solution code:
print([input().strip()[i] for i in range(3)])

Submission status: Wrong Answer

Solution code:
s1 = input()
s2 = input()
s3 = input()
print(''.join([s1[0], s1[1], s1[2]]))

Submission status: Wrong Answer

Solution code:
aa = [input() for i in range(3)]
print([aa[i][i] for i in range(3)])

Submission status: Wrong Answer

Solution code:
print([input()[0],input()[1],input()[2]],sep="")

Submission status: Wrong Answer

Solution code:
c = input()
c2 = input()
c3 = input()
print(c[0]+c[1]+c[2])

Submission status: Wrong Answer

Solution code:
f = list(input())
s = list(input())
t = list(input())

a = [f[i: i+1] for i in range(0, len(f), 1)]
b = [s[i: i+1] for i in range(0, len(s), 1)]
c = [t[i: i+1] for i in range(0, len(t), 1)]

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
for i  in range(3):
  print(input()[i])

Submission status: Wrong Answer

Solution code:
print(input()[0],input()[1],input()[2])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = [input()[i] for i in range(3)]
print(S[:])

Submission status: Wrong Answer

Solution code:
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))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
for i in range(3):
  print(input()[i:i+1])

Submission status: Wrong Answer

Solution code:
for i in range(3):
    print(input()[i],sep='')

Submission status: Wrong Answer

Solution code:
L = [input().split() for _ in range(3)]
print(L[0][0]+L[1][0]+L[2][0])

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a=[list(input()) for i in range(3)]
print(a[i][i] for i in range(3))

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
S = str(input())
T = str(input())
U = str(input())
print("{}".format(S[0]+S[1]+S[2]))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

A = [0]*3
ca = 0
cb = 0
cc = 0
for d in a:
    ca +=1
    if(ca == 1):
        A[0] = d

for e in b:
    cb +=1
    if(cb == 1):
        A[1] = e
for f in c:
    cc +=1
    if(cc == 1):
        A[2] = f 

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

Submission status: Wrong Answer

Solution code:
#90a
s=[input() for _ in range(3)]
print(s[0][0]+s[1][0]+s[2][0])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
nums1 = input()
nums2 = input()
nums3 = input()


print(nums1[0], nums2[1], nums3[2])

Submission status: Wrong Answer

Solution code:
print(input()[0])
print(input()[1])
print(input()[2])

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
data = [[i for i in input().split()] for i in range(3)]
num = 0
for i in data:
	for j in i:
		print(j[num])
		num+=1

Submission status: Wrong Answer

Solution code:
A = input()
B = input()
C = input()
print(A[0], B[1], C[2])

Submission status: Wrong Answer

Solution code:
for i in range(3):
    sanmoji = input()
    print(sanmoji[i])

Submission status: Wrong Answer

Solution code:
for i in range(2):
    sanmoji = input()
    print(sanmoji[i])

Submission status: Wrong Answer

Solution code:
import numpy as np
 
C = np.chararray((3,3))
C[0][:]=list(input())
C[1][:]=list(input())
C[2][:]=list(input())
 
print(C[0][0]+C[1][1]+C[2][2])

Submission status: Wrong Answer

Solution code:
import numpy as np
 
C = np.chararray((3,3))
C[0][:]=list(input())
C[1][:]=list(input())
C[2][:]=list(input())
 
print(C[0][0],C[1][1],C[2][2])

Submission status: Wrong Answer

Solution code:
import numpy as np
 
C = np.chararray((3,3))
C[0][:]=input().split()
C[1][:]=input().split()
C[2][:]=input().split()
 
print(C[0][0],C[1][1],C[2][2])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
class Atcoder:


    def Contest0901(self):
        lines = []
        for i in range(3):
            line = input()
            if line:
                lines.append(line)
            else:
                break
        print(lines)
        return lines[0][0] + lines[1][1] + lines[2][2]

if __name__ == '__main__':
    atcoder = Atcoder()
    output = atcoder.Contest0901()
    print(output)

Submission status: Wrong Answer

Solution code:
a = input()
b = input()
c = input()
 
print(a[0])
print(b[1])
print(c[2] + "\n")

Submission status: Wrong Answer

Solution code:
a = input()
b = input()
c = input()
 
print(a[0])
print(b[1])
print(c[2])
print("\n")

Submission status: Wrong Answer

Solution code:
a = input()
b = input()
c = input()
 
print(a[0])
print(b[1])
print(c[2])
print('\n')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
res=''
for i in range(3):
  s=input()
  res+=s[i-1]
print(res)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
x1 = input()[0]
x2 = input()[1]
x3 = input()[2]

print(x1, x2, x3)

Submission status: Wrong Answer

Solution code:
x1 = input()
x2 = input()
x3 = input()

print(x1[0], x2[1], x3[2])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
first = input()
second = input()
third = input()

print(first[0] + second[0] + third[0])

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
for i in range(3):
  a = input()
  print(a[i])

Submission status: Wrong Answer

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

Submission status: Accepted

Solution code:
a = input()[0]
s = input()[1]
d = input()[2]
print(a+s+d)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()
n1 = input()
n2 = input()

print(n[0],n1[1],n2[2], flush=True,sep='')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = ""
for i in range(3):
  s += input()
print(s[0] + s[4] + s[8])

Submission status: Accepted

Solution code:
S1,S2,S3 = [input() for _ in range(3)]
print(S1[0]+S2[1]+S3[2])

Submission status: Accepted

Solution code:
a = [list(input()) for i in range(3)]

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

Submission status: Accepted

Solution code:
ans = ''

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

print(ans)

Submission status: Accepted

Solution code:
n = list(input())
n1 = list(input())
n2 = list(input())

print(n[0]+n1[1]+n2[2])

Submission status: Accepted

Solution code:
l=input()[0]
l+=input()[1]
l+=input()[2]
print(l)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
r1 = input()
r2 = input()
r3 = input()
ans = r1[0] + r2[1] + r3[2]
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
s = sys.stdin.read().split()
print(s[0][0] + s[1][1] + s[2][2])

Submission status: Accepted

Solution code:
ans = []
for i in range(3):
  c = input()
  ans.append(c[i])
print("".join(ans))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
from collections import deque
from collections import defaultdict
import heapq
import collections
import itertools
import bisect
import copy
import math
from itertools import accumulate
sys.setrecursionlimit(10**6)

# lis_of_lis = [[] for _ in range(N)]


def floor(a, b): return -(-a // b)


def zz(): return list(map(int, sys.stdin.readline().split()))


def z(): return int(sys.stdin.readline())


def S(): return sys.stdin.readline()[:-1]


def C(line): return [sys.stdin.readline() for _ in range(line)]


S = C(3)
print(S[0][0], S[1][1], S[2][2], sep='')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A = list(input())
B = list(input())
C = list(input())

print(f"{A[0]}{B[1]}{C[2]}")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a = map(str, input().split())
line_a = ''.join(a)

b = map(str, input().split())
line_b = ''.join(b)

c = map(str, input().split())
line_c = ''.join(c)

print('{}{}{}'.format(line_a[0], line_b[1], line_c[2]))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    c_list = [list(input()) for _ in range(3)]
    print(c_list[0][0] + c_list[1][1] + c_list[2][2])


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
#!/usr/bin/env python3


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


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

Submission status: Accepted

Solution code:
str1 = input()
str2 = input()
str3 = input()

print(str1[0]+str2[1]+str3[2])

Submission status: Accepted

Solution code:
import sys

readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


def main():
    res = ""

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

    print(res)


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
cij = [list(input()) for _ in range(3)]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
C = sys.stdin.readlines()
print(C[0][0]+C[1][1]+C[2][2])

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
S=input()
T=input()
U=input()
print(S[0]+T[1]+U[2])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
res = ""
for i in range(3):
    line = input()
    res += line[i]

print(res)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def resolve():
    matrix = []
    for i in range(3):
        line = input()
        matrix.append(line)
    ans = ""
    for i in range(3):
        ans += matrix[i][i]
    print(ans)
resolve()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
l=[]
for i in range(3):
    l.append(input())
r=''
for i in range(3):
    r+=l[i][i]
print(r)

Submission status: Accepted

Solution code:
c_lst = [str(input()) for _ in range(3)]
ans = ''
for i in range(3):
    ans += c_lst[i][i]
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
c = []
for i in range(3):
    c.append(list(input()))
print(''.join([c[0][0],c[1][1],c[2][2]]))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
N_list = []

for i in range(3):
    N = input()
    N_i = N[0:3]
    N_list.append(N_i)
    i += 1
    
print(N_list[0][0] + N_list[1][1] + N_list[2][2])

Submission status: Accepted

Solution code:
A=input()
S=input()
D=input()
print(A[0]+S[1]+D[2])

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
s = input()
t = input()
u = input()
print(s[0]+t[1]+u[2])

Submission status: Accepted

Solution code:
ans = ''
ans += input()[0]
ans += input()[1]
ans += input()[2]
print(ans)

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print(*[input()[i] for i in range(3)],sep='')

Submission status: Accepted

Solution code:
c = []

for i in range(3):
    tmp = input()
    c.append(tmp)

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
r1 = list(input())
r2 = list(input())
r3 = list(input())

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

Submission status: Accepted

Solution code:
#k = int(input())
#s = input()
#a, b = map(int, input().split())
#s, t = map(str, input().split())
#l = list(map(int, input().split()))
#l = [list(map(int,input().split())) for i in range(n)]
#a = [list(input()) for _ in range(n)]
#a = [int(input()) for _ in range(n)]

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i1=input()
i2=input()
i3=input()
print(str(i1[0])+str(i2[1])+str(i3[2]))

Submission status: Accepted

Solution code:

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    C = [readline().strip() for _ in range(3)]

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

    return


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

read = sys.stdin.read
readline = sys.stdin.buffer.readline
sys.setrecursionlimit(10 ** 8)
INF = float('inf')
MOD = 10 ** 9 + 7


def main():
    C = read().split()
    ans = ''
    for i in range(3):
        ans += C[i][i]
    print(ans)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
s = [list(input()) for _ in range(3)]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import bisect, collections, copy, heapq, itertools, math, string, sys
input = lambda: sys.stdin.readline().rstrip() 
sys.setrecursionlimit(10**7)
INF = float('inf')
def I(): return int(input())
def F(): return float(input())
def SS(): return input()
def LI(): return [int(x) for x in input().split()]
def LI_(): return [int(x)-1 for x in input().split()]
def LF(): return [float(x) for x in input().split()]
def LSS(): return input().split()

def resolve():
    c = [SS() for _ in range(3)]

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

if __name__ == '__main__':
    resolve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
c=input()
d=input()
e=input()
ans=c[0]+d[1]+e[2]
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
C = [[''] * 3 for _ in range(3)]
for i in range(3):
    C[i] = list(str(input()))

print(''.join((C[0][0], C[1][1], C[2][2])))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = [list(map(str, input())) for i in range(3)]
my_result = a[0][0] + a[1][1] + a[2][2]
print(my_result)

Submission status: Accepted

Solution code:
# # Make IO faster
# import sys
# input = sys.stdin.readline

# # get single (or) multiple str
# X = input()

# # get single int
# N = int(input())
# # get multiple int (e.g., 2)
# X, Y = map(int, input().split())
# # get multiple int (e.g., 2) for N lines
# XY = [list(map(int, input().split())) for _ in range(N)]

# from IPython import embed; embed(); exit();

# 全部入り
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
import numpy as np
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()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

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

Submission status: Accepted

Solution code:
a = [raw_input() for _ in range(3)]
print ''.join([a[i][i] for i in range(3)])

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
S = [list(input()) for i in range(3)]

print("".join([S[0][0],S[1][1],S[2][2]]))

Submission status: Accepted

Solution code:
ss = open(0).read().splitlines()

ans = ''
for i,s in enumerate(ss):
    ans += s[i]
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys, re
from math import ceil, floor, sqrt, pi, factorial, gcd
from copy import deepcopy
from collections import Counter, deque
from heapq import heapify, heappop, heappush
from itertools import accumulate, product, combinations, combinations_with_replacement
from bisect import bisect, bisect_left, bisect_right
from functools import reduce
from decimal import Decimal, getcontext
# input = sys.stdin.readline 
def i_input(): return int(input())
def i_map(): return map(int, input().split())
def i_list(): return list(i_map())
def i_row(N): return [i_input() for _ in range(N)]
def i_row_list(N): return [i_list() for _ in range(N)]
def s_input(): return input()
def s_map(): return input().split()
def s_list(): return list(s_map())
def s_row(N): return [s_input for _ in range(N)]
def s_row_str(N): return [s_list() for _ in range(N)]
def s_row_list(N): return [list(s_input()) for _ in range(N)]
def lcm(a, b): return a * b // gcd(a, b)
sys.setrecursionlimit(10 ** 6)
INF = float('inf')
MOD = 10 ** 9 + 7
num_list = []
str_list = []

def main():
    s1 = s_input()
    s2 = s_input()
    s3 = s_input()

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
s = ""
s += input()[0]
s += input()[1]
s += input()[2]
print(s)

Submission status: Accepted

Solution code:
import sys

def solve():
    input = sys.stdin.readline
    C = [input().strip("\n") for _ in range(3)]
    print(C[0][0] + C[1][1] + C[2][2])

    return 0

if __name__ == "__main__":
    solve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
Str = [input()[I] for I in range(0,3)]
print(''.join(Str))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = [input() for _ in range(3)]
print(a[0][0], a[1][1], a[2][2], sep='')

Submission status: Accepted

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

Submission status: Accepted

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