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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# ABC090A - Diagonal String
def main():
    *C, = open(0).read().split()
    ans = C[0][0] + C[1][1] + C[2][2]
    print(ans)


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
C = open(0).read().split()
print(C[0][0] + C[1][1] + C[2][2])

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#coding:utf-8

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
a, b, c=input()
e, f, g=input()
h, i, j=input()
print(a+f+j)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
C1 = list(str(input()))
C2 =list(str(input()))
C3 =list(str(input()))

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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],sep="")

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

Submission status: Accepted

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


if __name__ == "__main__":
    resolve()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c=input()
d,e,f=input()
g,h,i=input()
print(a,e,i,sep="")

Submission status: Accepted

Solution code:
def main():
    c = []
    t = ""
    for i in range(3):
        s = input()
        t += s[i]
    return t


if __name__ == '__main__':
    print(main())

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=list(input())
b=list(input())
c=list(input())
a[1]=b[1]
a[2]=c[2]
print(''.join(a))

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
c1 = input()
c2 = input()
c3 = input()
print('{}{}{}'.format(c1[0],c2[1],c3[2]))

Submission status: Accepted

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

Submission status: Accepted

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

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


if __name__ == "__main__":
    test()

Submission status: Accepted

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

Submission status: Accepted

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

print(out)

Submission status: Accepted

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

Submission status: Accepted

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

print("{}{}{}".format(c1[0], c2[1], c3[2]))

Submission status: Accepted

Solution code:
a = input()[0]
e = input()[1]
i = input()[2]
print(a+e+i)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#A-Diagonal String(090)
C=[str(input()) for i in range(3)]
print(C[0][0]+C[1][1]+C[2][2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
C=[input() for c in range(3)]
C1=[]
C2=[]
C3=[]
ANS=' '
for c in C[0]:
    C1.append(c)
for c in C[1]:
    C2.append(c)
for c in C[2]:
    C3.append(c)
    
ANS=C[0][0]+C[1][1]+C[2][2]

print(ANS)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
C = open(0).read().split()
for i in range(len(C)):
  print(C[i][i],end="")
print("",end="\n")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

ptn = []
for i in range(3):
    s = input()
    ptn.append(s)

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = 0;
result = ""
while i < 3:
    li =list(input())
    result += li[i];
    i+=1

print(result)

Submission status: Accepted

Solution code:
#11:43
ans = ''
for i in range(3):
  put = input()
  ans += put[i]
print(ans)

Submission status: Accepted

Solution code:
#90

li =  [list(y) for y in [input() for x in range(3)]]
print(li[0][0]+li[1][1]+li[2][2])

Submission status: Accepted

Solution code:
x = list(input())
y = list(input())
z = list(input())

print(x[0]+y[1]+z[2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i,j,k=open(0).read().split()
print(i[0]+j[1]+k[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:
c = [input() for _ in range(3)]
ans = c[0][0] + c[1][1] + c[2][2]
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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)]
d = ''.join(a[0] + b[1] + c[2])
print(d)

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:
hako = []
kotae = []
for _ in range(3):
  hako.append(list(input()))
for h in range(len(hako)):
  kotae.append(hako[h][h])
print("".join(kotae))

Submission status: Accepted

Solution code:
strs = [list(input()) for _ in range(3)]
ans = ''
for i in range(3):
  for j in range(3):
    if i == j:
      ans += strs[i][j]
print(ans)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# _*_ coding: utf-8 _*_

row1 = input()
row2 = input()
row3 = input()

print(row1[0] + row2[1] + row3[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
import copy
import collections
from bisect import bisect_left
from bisect import bisect_right
from collections import defaultdict
from heapq import heappop, heappush
import math

# NO, PAY-PAY
#import numpy as np
#import statistics
#from statistics import mean, median,variance,stdev
 
def main():
    a = input()
    b = input()
    c = input()
    
    print(a[0] + b[1] + c[2])
    
	
if __name__ == "__main__":
	main()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


def solve(c: "List[str]"):
    print(c[0][0] + c[1][1] + c[2][2])
    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word

    tokens = iterate_tokens()
    c = [next(tokens) for _ in range(3)]  # type: "List[str]"
    solve(c)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
import itertools
sys.setrecursionlimit(10**5)
stdin = sys.stdin
bisect_left = bisect.bisect_left
bisect_right = bisect.bisect_right
def LI(): return list(map(int, stdin.readline().split()))
def LF(): return list(map(float, stdin.readline().split()))
def LI_(): return list(map(lambda x: int(x)-1, stdin.readline().split()))
def II(): return int(stdin.readline())
def IF(): return float(stdin.readline())
def LS(): return list(map(list, stdin.readline().split()))
def S(): return list(stdin.readline().rstrip())
def IR(n): return [II() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def FR(n): return [IF() for _ in range(n)]
def LFR(n): return [LI() for _ in range(n)]
def LIR_(n): return [LI_() for _ in range(n)]
def SR(n): return [S() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
mod = 1000000007
inf = float('INF')

#A
def A():
    s = SR(3)
    for i in range(3):
        print(s[i][i], end="")
    print()
    return

#B
def B():
    return

#C
def C():
    return

#D
def D():
    return

#E
def E():
    return

#F
def F():
    return

#G
def G():
    return

#H
def H():
    return

#Solve
if __name__ == '__main__':
    A()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
L = [input() for l in range(3)]
#0,1,2
print(L[0][0] + L[1][1] + L [2][2])

Submission status: Accepted

Solution code:

s1 = input()
s2 = input()
s3 = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
zero = input()[0]
one = input()[1]
two = input()[2]

print(zero + one + two)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
C1,C2,C3 = input()
C4,C5,C6 = input()
C7,C8,C9 = input()
print(''.join([C1,C5,C9]))

Submission status: Accepted

Solution code:

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

ans = a[0]+b[1]+c[2]

print (ans)

Submission status: Accepted

Solution code:
import sys

def input():
    return sys.stdin.readline().rstrip()

if __name__ == "__main__":
    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:
#print diagonal from 3*3 input
A = input()
B = input()
C = input()
print(A[0]+B[1]+C[2])

Submission status: Accepted

Solution code:
s = [input() for i in range(3)]
print(s[0][0], s[1][1], s[2][2], sep="")

Submission status: Accepted

Solution code:
nl = lambda: list(map(int, input().split()))
sl = lambda: input().split()
n = lambda: int(input())
s = lambda: input()


C = [s(), s(), s()]
print(C[0][0] + C[1][1] + C[2][2])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def resolve():
	c=list(map(list,[input() for __ in range(3)]))
	s=''
	for i in range(3):
		s+=c[i][i]
	print(s)

resolve()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from functools import reduce
import math

def main():
    # 文字列の2進数を数値にする
    # '101' → '5'
    # 文字列の頭に'0b'をつけてint()にわたす
    # binary = int('0b'+'101',0)

    # 2進数で立っているbitを数える
    # 101(0x5) → 2
    # cnt_bit = bin(5).count('1')
    
    # N! を求める
    # f = math.factorial(N)

    # N の逆元
    # N_inv = pow(N,MOD-2,MOD)

    # nCr
    # Nの階乗 * rの階乗の逆元 * n-rの階乗の逆元
    
    # 切り捨て
    # 4 // 3
    # 切り上げ
    #-(-4 // 3)
    
    # 初期値用:十分大きい数(100億)
    INF = float("inf")

    # 大きな素数
    MOD = 10**9+7
    
    # 1文字のみを読み込み
    # 入力:2
    # a = input().rstrip()
    # 変数:a='2'
    
    # スペース区切りで標準入力を配列として読み込み
    # 入力:2 4 5 7
    # a, b, c, d = (int(_) for _ in input().split())  
    # 変数:a=2 b=4 c=5 d =7
    
    # 1文字ずつ標準入力を配列として読み込み
    # 入力:2 4 5 7
    # a = list(int(_) for _ in input().split())
    # 変数:a = [2, 4, 5, 7]    

    # 1文字ずつ標準入力を配列として読み込み
    # 入力:2457
    # a = list(int(_) for _ in input())
    # 変数:a = [2, 4, 5, 7]    
    s1 = input()
    s2 = input()
    s3 = input()
    print(s1[0]+s2[1]+s3[2])
    
if __name__ == '__main__':
    main()

Submission status: Accepted

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

print(a+b+c)

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

Submission status: Accepted

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


abc()

Submission status: Accepted

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

Submission status: Accepted

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


def solve(c: "List[str]"):
    for i,s in enumerate(c):
        print(s[i],end="")
    print("")


# Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    c = [ next(tokens) for _ in range(3) ]  # type: "List[str]"
    solve(c)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

s1 = input()
s2 = input()
s3 = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

C=[]
C=B[0]+B[4]+B[8]
print(C)

Submission status: Accepted

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

slice1 = s[0:1]
slice2 = t[1:2]
slice3 = u[2:3]

ans = slice1 + slice2 + slice3

print(ans)

Submission status: Accepted

Solution code:
ans=[]
for i in range(3):
    s=str(input())
    ans.append(s[i])
    
answer="".join(ans)

print(answer)

Submission status: Accepted

Solution code:
S1=input()
S2=input()
S3=input()
print(S1[0]+S2[1]+S3[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 = [list(input()) for i in range(3)]
s = ""
for j in range(3):
  s += str(c[j][j])
print(s)

Submission status: Accepted

Solution code:
x = input()
y = input()
z = input()
print(x[0], y[1], z[2], sep='')

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 = input()
b = input()
c = input()

ls = [a[0],b[1],c[2]]
print(''.join(ls))

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    lst = [list(input()) for i in range(3)]
    str = [lst[0][0], lst[1][1], lst[2][2]]
    print("".join(str))

Submission status: Accepted

Solution code:
ans = ""

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

Submission status: Accepted

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

ans = a[0]+b[1]+c[2]

print(ans)

Submission status: Accepted

Solution code:
A = str(input())[0:1]
B = str(input())[1:2]
C = str(input())[2:3]

print (A+B+C)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
c1_list = [i for i in input()]
c2_list = [i for i in input()]
c3_list = [i for i in input()]
print(c1_list[0] + c2_list[1] + c3_list[2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=""
for i in range(3):
  l=input().split()
  a=a+l[0][i]
print(a)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input()
b = input()
c = input()
str_list = [a, b, c]
result = ""

for i in range(3):
    result += str_list[i][i]

print(result)

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

Submission status: Accepted

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


def solve(c: "List[str]"):
    ret = c[0][0] + c[1][1] + c[2][2]
    print(ret)
    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    c = [ next(tokens) for _ in range(3) ]  # type: "List[str]"
    solve(c)

if __name__ == '__main__':
    main()

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

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

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[-1])