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

Submission status: Accepted

Solution code:
# 入力　文字列3つ、別々に
A = input()
B = input()
C = input()

# 出力
Ans = A[0] + B[1] + C[2]
print(Ans)

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

a_list = [i for i in a]
b_list = [i for i in b]
c_list = [i for i in c]


print(a_list[0]+b_list[1]+c_list[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 numpy as np
# import scipy as sp
# print(a,b,c,sep="") # 半角スペースなしで出力(abc)
# n=int(input())  #数値入力 「N」だけの入力のとき
# a,b=map(int, input().split())  #複数数値入力　「A B」みたいなスペース空いた入力のとき
# a=list(map(int, input().split()))  #リスト入力 「a1 a2 a3 ...」みたいな配列のような入力のとき
# a=[int(input()) for _ in range (n)]  #リスト入力  改行でa1 ... anのとき
# s=[list(map(str,list(input()))) for i in range(h)]  # 文字列の二次元配列入力
# s = [list(map(int, input().split())) for i in range(n)] # 数値の二次元配列入力
# a = b[:], a = [x[:] for x in b] # deepcopy
# chr(ord('a') + 1) # chrのインクリメント
# s.sort(key=lambda x: x[1], reverse=False) # 2番目の要素で昇順にソート（Trueなら降順）
#

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import numpy as np
C=np.zeros((3,3),dtype=str)
for i in range(3):
  a=list(map(str,input()))
  C[i][0]=a[0]
  C[i][1]=a[1]
  C[i][2]=a[2]
print(C[0][0]+C[1][1]+C[2][2])

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-


def main():
    C1 = list(input())
    C2 = list(input())
    C3 = list(input())
    print(C1[0] + C2[1] + C3[2])


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


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

Submission status: Accepted

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

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:
"""
author : halo2halo
date : 24, Jan, 2020
"""

import sys
import itertools

# import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

A = [readline().decode('utf8') for _ in range(3)]

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

Submission status: Accepted

Solution code:
C1 = list(input())
C2 = list(input())
C3 = list(input())

print('{}{}{}'.format(C1[0],C2[1],C3[2]))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
arr = [[0]*3 for i in range(3)]

for i in range(3):
    s = input()
    s = list(s)
    arr[i] = s

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

print("{}{}{}".format(s1[0], s2[1], s3[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:
c_1 = list(input())
c_2 = list(input())
c_3 = list(input())

ans = ""
ans += c_1[0] + c_2[1] + c_3[2]

print(ans)

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

Submission status: Accepted

Solution code:
def main():
    from sys import stdin, setrecursionlimit
    #setrecursionlimit(10**6)
    #r = stdin.readline()[:-1]
    #n = int(stdin.readline()[:-1])   
    #r = [stdin.readline() for i in range(n)]
    #t = [int(stdin.readline()) for i in range(n)]
    r = [stdin.readline() for i in range(3)]
    
    print(r[0][0]+r[1][1]+r[2][2])
    #'Yes', 'No', 'YES', 'NO', ':(', 'Yay!'
    #res = 0
    #a, b = map(int, r.split())
    #print()

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:


import numpy as np

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
ans=''
for i in range(3):
  ans += (input())[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:
word1 = input()
word2 = input()
word3 = input()

print(word1[0]+word2[1]+word3[2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
import queue
import bisect
import heapq
import time
import itertools

mod = int(1e9+7)

def swap(a,b):
    return (b,a)

def my_round(a,dig=0):
    p = 10 ** dig
    return (a * p * 2 + 1) // 2 / p

def gcd(a,b): #最大公約数
    if (a<b):
        a,b = swap(a,b)
    if (b==0):
        return a
    else:
        return gcd(b,a%b)

def lcm(a,b): #最小公倍数
    return a/gcd(a,b)*b

def divisors(a): # 約数列挙
    divisors = []
    for i in range(1,int(a**0.5)+1):
        if a%i==0:
            divisors.append(i)
            if i!=a//i:
                divisors.append(a//i)
    return divisors

def is_prime(a): #素数判定
    if a<2:
        return False
    elif a==2:
        return True
    elif a%2==0:
        return False
    sqrt_num = int(a**0.5)
    for i in range(3,sqrt_num+1,2):
        if a%i==0:
            return False
    return True

def prime_num(a): #素数列挙
    pn = [2]
    for i in range(3,int(a**0.5),2):
        prime = True
        for j in pn:
            if i%j==0:
                prime = False
                break
        if prime:
            pn.append(i)
    return pn

def prime_fact(a): #素因数分解
    sqrt = math.sqrt(a)
    res = []
    i = 2
    if is_prime(a):
        res.append(a)
    else:
        while a!=1:
            while a%i==0:
                res.append(i)
                a //= i
            i += 1
    return res

def main():
    cout = []
    for i in range(3):
        x = input()
        cout.append(x[i])
    print(''.join(cout))
    return

if __name__=='__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ca = list(input())
cb = list(input())
cc = list(input())

print(ca[0] + cb[1] + cc[2])

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
c=[input().strip() for _ in range(3)]
ans=""
for i in range(3):
    ans+=c[i][i]
print(ans)

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
c = [list(input().strip()) for _ in range(3)]
ans = ""
for i in range(3):
    ans += c[i][i]
print(ans)

Submission status: Accepted

Solution code:
li1 = list(input())
li2 = list(input())
li3 = list(input())
print(li1[0] + li2[1] + li3[2])

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
C = []
for _ in range(3):
    C.append(list(input()))
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:
c = input()
c_ = input()
c__ = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys

s = sys.stdin.read().split()

def main():
    t = ''
    for i in range(3):
        t += s[i][i]
    return t

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

Submission status: Accepted

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

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

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:

##Just for prctice
ans=("")
for i in range(3):
    c=input()
    ans+=c[i]
print(ans)

"""
ant
obe
rec

abc

edu
cat
ion

ean
"""

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

print(''.join(s))

Submission status: Accepted

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

print(ans)

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
texts = list(map(str, open(0).read().split()))
print(texts[0][0] + texts[1][1] + texts[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:
s1 = str( input() ) 
s2 = str( input() ) 
s3 = str( input() ) 
print( s1[0] + s2[1] + s3[2] )

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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()  # ignore trailing spaces

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

Submission status: Accepted

Solution code:
c1 = input()
c2 = input()
c3 = input()
ans = c1[0] + c2[1] + c3[2]
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:
s1=input()
s2=input()
s3=input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#n = int(input())
#n,k = map(int,input().split())
#x = list(map(int,input().split()))


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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#090a
c1 = str(input())
c2 = str(input())
c3 = str(input())
print(''.join(map(str,[c1[0],c2[1],c3[2]])))

Submission status: Accepted

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

print(ans)

Submission status: Accepted

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

#入力
#S = str(input())
#a, b = map(int, input().split())
#N = int(input())

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
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="")

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:
passa = [list(input())for _ in range(3)]
ans = []
for i in range(3):
  ans.append(passa[i][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:
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()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
c = [None] * 3

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

ans = ""

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#                         author:  kagemeka 
#                         created: 2019-11-06 21:30:22(JST)
import sys
# import collections
# import math
# import string
# import bisect
# import re
# import itertools
# import statistics
# import functools
# import operator

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__":
    # execute only if run as a script
    main()

Submission status: Accepted

Solution code:
#Diagonal String
SA = input()
SB = input()
SC = input()
S = SA[0]+SB[1]+SC[2]
print(S)

Submission status: Accepted

Solution code:
a,b,c=[str(input()) for i 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:
c_mat = [input() for i in range(3)]

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
c1 = input()
c2 = input()
c3 = 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:
# A - Diagonal String
c = [input() for _ in range(3)]
print(c[0][0] + c[1][1] + c[2][2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
if __name__ == '__main__':

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

	print(s)

Submission status: Accepted

Solution code:
s1 = str(input())
s2 = str(input())
s3 = str(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], sep="")

Submission status: Accepted

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

Submission status: Accepted

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

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

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:
c1=input()
c2=input()
c3=input()
print(''.join([c1[0],c2[1],c3[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:
one = input()
two = input()
three = input()

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

print(mes)

Submission status: Accepted

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

# input
c = list()
for _ in range(3):
    c.append(input())

# solve & output
print(c[0][0] + c[1][1] + c[2][2])

Submission status: Accepted

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

print(firstrow[0]+secondrow[1]+thirdrow[2])

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

Submission status: Accepted

Solution code:
# A - Diagonal String
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:
a = ''
for i in range(3):
    a += input()[i]
print(a)

Submission status: Accepted

Solution code:
from sys import stdin
data = []
for _ in range(3):
    data.append(input())
ans = data[0][0] + data[1][1] + data[2][2]
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

aa090()

Submission status: Accepted

Solution code:
import sys

input = sys.stdin.readline


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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
S_1=input()
S_2=input()
S_3=input()

print(S_1[0]+S_2[1]+S_3[2])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# ABC090 A - Diagonal String
c1 = input()
c2 = input()
c3 = input()

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

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 = []
for i in range(3):
    C.append(input())
    
ans = ""
for i in range(3):
    ans += C[i][i]
    
print(ans)

Submission status: Accepted

Solution code:
c1,c2,c3 = list(input()),list(input()),list(input())
print(c1[0]+c2[1]+c3[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:
s = [input() for i in range(3)]
print(''.join([s[0][0],s[1][1],s[2][2]]))