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: Runtime Error

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

#############
# Libraries #
#############

import sys
input = sys.stdin.readline

import math
from collections import deque
from fractions import gcd
from functools import lru_cache


#############
# Constants #
#############

MOD = 10**9+7
INF = float('inf')

#############
# Functions #
#############

######INPUT######
def inputI(): return int(input().strip())
def inputS(): return input().strip()
def inputIL(): return list(map(int,input().split()))
def inputSL(): return list(map(str,input().split()))
def inputILs(n): return list(int(input()) for _ in range(n))
def inputSLs(n): return list(input().strip() for _ in range(n))
def inputILL(n): return [list(map(int, input().split())) for _ in range(n)]
def inputSLL(n): return [list(map(str, input().split())) for _ in range(n)]

#####Inverse#####
def inv(n): return pow(n, MOD-2, MOD)

######Combination######
kaijo_memo = []
def kaijo(n):
  if(len(kaijo_memo) > n):
    return kaijo_memo[n]
  if(len(kaijo_memo) == 0):
    kaijo_memo.append(1)
  while(len(kaijo_memo) <= n):
    kaijo_memo.append(kaijo_memo[-1] * len(kaijo_memo) % MOD)
  return kaijo_memo[n]

gyaku_kaijo_memo = []
def gyaku_kaijo(n):
  if(len(gyaku_kaijo_memo) > n):
    return gyaku_kaijo_memo[n]
  if(len(gyaku_kaijo_memo) == 0):
    gyaku_kaijo_memo.append(1)
  while(len(gyaku_kaijo_memo) <= n):
    gyaku_kaijo_memo.append(gyaku_kaijo_memo[-1] * pow(len(gyaku_kaijo_memo),MOD-2,MOD) % MOD)
  return gyaku_kaijo_memo[n]

def nCr(n,r):
  if(n == r):
    return 1
  if(n < r or r < 0):
    return 0
  ret = 1
  ret = ret * kaijo(n) % MOD
  ret = ret * gyaku_kaijo(r) % MOD
  ret = ret * gyaku_kaijo(n-r) % MOD
  return ret

######Factorization######
def factorization(n):
    arr = []
    temp = n
    for i in range(2, int(-(-n**0.5//1))+1):
        if temp%i==0:
            cnt=0
            while temp%i==0:
                cnt+=1
                temp //= i
            arr.append([i, cnt])
    if temp!=1:
        arr.append([temp, 1])

    if arr==[]:
        arr.append([n, 1])
    return arr

#####LCM#####
def lcm(a, b):
    return a * b // gcd (a, b)

#############
# Main Code #
#############

a = inputSLL(3)

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

Submission status: Runtime Error

Solution code:
a , b = map(int , input().split())
count = 0
for i in range(a , b + 1):
  i = str(i)
  if i == i[::-1]:
    count += 1

print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A,B = map(int, input().split())
count = 0
for i in range(A,B+1):
  k = str(i)
  if k[0] == k[4] and k[1] == k[3]:
    count += 1
print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
c=0
for i in range(a,b+1):
  if str(i)==str(i)[::-1]:
    c+=1
print(c)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
C11,C12,C13 = input().split()
C21,C22,C23 = input().split()
C31,C32,C33 = input().split()

print(C11 + C22 + C33)

Submission status: Runtime Error

Solution code:
C11,C12,C13 = input().split()
C21,C22,C23 = input().split()
C31,C32,C33 = input().split()

print(C11 + C22 + C33)

Submission status: Runtime Error

Solution code:
C11,C12,C13 = input().split()
C21,C22,C23 = input().split()
C31,C32,C33 = input().split()
 
print(C11 + C22 + C33)

Submission status: Runtime Error

Solution code:
c11,c12,c13=map(str,input().split())
c21,c22,c23=map(str,input().split())
c31,c32,c33=map(str,input().split())
print(c11+c22+c33)

Submission status: Runtime Error

Solution code:
c11,c12,c13=input().split()
c21,c22,c23=input().split()
c31,c32,c33=input().split()
print(str(c11)+str(c22)+str(c33))

Submission status: Runtime Error

Solution code:
c11,c12,c13=input().split()
c21,c22,c23=input().split()
c31,c32,c33=input().split()
print(str(c11+c22+c33))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
cnt=0
for l in range(a,b+1):
            l_i=list(str())
            if l_i[0]==l_i[-1] and l_i[1]=l_i[-2]:
                        cnt+=1
print(cnt)

Submission status: Runtime Error

Solution code:
c1, _, _ = input().split()
_, c2, _ = input().split()
_, _, c3 = input().split()

print(c1 + c2 + c3)

Submission status: Runtime Error

Solution code:
a = list(map(str, input())
b = list(map(str, input())
c = list(map(str, input())

print(a[0]+b[1]+c[2], end='')

Submission status: Runtime Error

Solution code:
a = list(map(str, input().split()))
b = list(map(str, input().split()))
c = list(map(str, input().split()))

print(a[0]+b[1]+c[2], end='')

Submission status: Runtime Error

Solution code:
a,b,c=list(map(str, input().split()))
d,e,f=list(map(str, input().split()))
q,n,z=list(map(str, input().split()))
print(a+e+z)

Submission status: Runtime Error

Solution code:
def Is_cyc(x):
  s = str(x)
  for i in range(len(s)):
    if s[i] != s[-i-1]:
      return False
  return True

def main():
  a,b = map(int,input().split())
  ans = 0
  for i in range(a,b+1):
    if Is_cyc(i):
      ans += 1
  print(ans)
  return

if __name__ == "__main__":
  main()

Submission status: Runtime Error

Solution code:
def Is_cyc(x):
  s = str(x)
  for i in range(len(s)):
    if s[i] != s[-i-1]:
      return False
  return True

def main():
  a,b = map(int,input().split())
  ans = 0
  for i in range(a,b+1):
    if Is_cyc(i):
      ans += 1
  print(ans)
  return

if __name__ = "__main__":
  main()

Submission status: Runtime Error

Solution code:
A, B = [int(i) for i in input().rstrip().split(' ')]
cnt = 0
for i in range(A, B+1):
    arr = [i for i in list(str(i))]
    if not arr[0] == arr[-1]:
        continue
    
    asc = ''.join(arr)
    desc = ''.join(list(reversed(arr)))
    if asc == desc:
        cnt += 1

print(cnt)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
c1,c2,c3=input().split()
c4,c5,c6=input().split()
c7,c8,c9=input().split()
ptint(c1+c5+c9)

Submission status: Runtime Error

Solution code:
a,b,c=map(input().split())
d,e,f=map(input().split())
g,h,i=map(input().split())
print(aei)

Submission status: Runtime Error

Solution code:
a,b,c=map(int,input().split())
d,e,f=map(int,input().split())
g,h,i=map(int,input().split())
print(aei)

Submission status: Runtime Error

Solution code:
import math

a, b, c = [[j for j in input().split()] for i in range(3)]
print(a[0] + b[1] + c[2])

Submission status: Runtime Error

Solution code:
x = [map(str, input().split())]
y = [map(str, input().split())]
z = [map(str, input().split())]

print(''.join([x[0], y[1], z[2]]))

Submission status: Runtime Error

Solution code:
x = list(map(str, input().split()))
y = list(map(str, input().split()))
z = list(map(str, input().split()))

print(''.join([x[0], y[1], z[2]]))

Submission status: Runtime Error

Solution code:
x = list(map(str, input().split()))
y = list(map(str, input().split()))
z = list(map(str, input().split()))

print(''.join(x[0], y[1], z[2]))

Submission status: Runtime Error

Solution code:
n,k=map(int,input().split())
ans=0
for b in range(k+1,n+1):
  q=n//b
  s=n%b
  ans+=q*(b-k)
  if s>=k:
    ans+=s-k+1
if k==0:
  ans-=n
print(ans)

Submission status: Runtime Error

Solution code:
(A, B) = map(int, input().split())
range_A2B = range(A, B+1)
count = 0
for i in range_A2B:
	x, y, g, h, z = str(i) 
	if x == z and y == h: 
		count += 1
print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

print(a+e+i)

Submission status: Runtime Error

Solution code:
C11,C12,C13 = map(int, input().split())
C21,C22,C23 = map(int, input().split())
C31,C32,C33 = map(int, input().split())

print(C11+C22+C33)

Submission status: Runtime Error

Solution code:
def calculate(n):
    ans = 0
    for i in range(len(str(n))):
        ans += n % 10
        n //= 10
    return ans


n = int(input())
val = 100000
num = []
for i in range(1, n):
    num.append([i, n-i])
    cal = calculate(num[i-1][0]) + calculate(num[i-1][1])
    if val > cal:
        val = cal
print(val)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A,B=map(int,input().split())
count=0
for i in range(A,B+1):
        if str(i)==str(i[::-1]):
            count+=1
print(count)

Submission status: Runtime Error

Solution code:
A,B=map(int,input().split())
count=0
if i>=A and i<=B:
    array_i=list(map(int,str(i)))
    if array_i==reverse(array_i):
        count+=1
    print(count)

Submission status: Runtime Error

Solution code:
c11,c12,c13 = input()
c21,c22,c23 = input()
c31,c32,c33 = input()
print(c11,c12,c13[1], c21,c22,c23[2], c31,c32,c33[3])

Submission status: Runtime Error

Solution code:
from sys import stdin
data = []
for _ in range(N):
    data.append([int(x) for x in stdin.readline().rstrip().split()])
ans = str(data[0][0]) + str(data[1][1]) + str(data[2][2])
print(ans)

Submission status: Runtime Error

Solution code:
a,x,x=input().split()
x,b,x=input().split()
x,x,c=input().split()
print(a+b+c)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
l1, l2, l3 = input() for _ in range(3)
print(l1[0]+l2[1]+l3[2])

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, b =map(int, input().split())
count=0
for i in range(a+1,b+1):
    m = list(str(i))
    if m[0]==m[3]:
        if m[1]==m[2]:
            count+=1
print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
tmp = [row[i] for i, row in enumerate(input())]
print(''.join(tmp))

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
A = [list(map(str,input().split())) for i in range(3)]
print([A[i][i] for i in range(3)])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b,c=map(str,input().split())
d,e,f=map(str,input().split())
g,h,q=map(str,input().split())

print(a+e+q)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b,c=(str(x) for x in input().split())
d,e,f=(str(x) for x in input().split())
g,h,i=(str(x) for x in input().split())

print(a + e + i)

Submission status: Runtime Error

Solution code:
a,b = map(int,input().split())
a1 = a//100
b1 = b//100
a2 = a//1000
b2 = b//1000
a3 = ((a%100)%10)*10 + (a%100)//10
b3 = ((b%100)%10)*10 + (b%100)//10
count = 0
if a3 <= a2:
    count = count + 1
if b3 >= b2:
    count = count + 1
if b1 - a1 == 0:
    if count == 2:
        print(1)
    else:
        print(0)
else:
    print(b1-a1+count)

Submission status: Runtime Error

Solution code:
c11,c12,c13 = map(int,input().split())
c21,c22,c23 = map(int,input().split())
c31,c32,c33 = map(int,input().split())
print(str(c11) + str(c22) + str(c33))

Submission status: Runtime Error

Solution code:
c11,c12,c13 = map(int,input().split())
c21,c22,c23 = map(int,input().split())
c31,c32,c33 = map(int,input().split())
print(c11 + c22 + c33)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
c_11, c_12, c_13 = [int(a) for a in input().split()]
c_21, c_22, c_23 = [int(b) for b in input().split()]
c_31, c_32, c_33 = [int(c) for c in input().split()]
print(str(c_11) + str(c_22) + str(c_33))

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
i = list(map(int, input().split()))
A = i[0]
B = i[1]

count = 0
for i in range (A,B+1,1):
    I = str(i)
    if int(I[-1]) == int(I[-5]) and int(I[-2]) == int(I[-4]):
        count = count + 1
    else :
        pass

print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A, B = map(int, input().split())
cnt = 0
for i in range(A, B+1):
  tmp = str(i)
  if tmp[0] == tmp[-1] and tmp[1] == tmp[3]:
    cnt += 1
print(cnt)

Submission status: Runtime Error

Solution code:
a,b,c=map(input().split())

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

Submission status: Runtime Error

Solution code:
a,b,c=(str, input().split())

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

Submission status: Runtime Error

Solution code:
a,s,d=input().split()
f,g,h=input().split()
j,k,l=input().split()
print(a+g+k)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import functools

import os

INF = float('inf')


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


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


def inps():
    return input()


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


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


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


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

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

    return wrapper


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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#include <stdio.h>

int main(void){
  int l1 = [3];
  int i;
  
  for (i = 0;i < 9;i += 3){
    scanf("%d", &l1[i]);
  }
  print("%d%d%d\n", l1[0], l1[1], l1[2]);
  return 0;
}

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = ''
for i in range(3):
  l = [int(j) for j in input().split()]
  s += l[i]
print(s)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, b, c = map(int, input().split())

if a+b >= c
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
# Rows and columns(行と列)
rac_count = 3
rac_all = [input().split() for a in range(rac_count)]

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

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, b = map(int, input().split())
count = 0
for i in range(a, b+1):
    s = str(i)
    if(s[0]==s[-1] and s[1]==s[-2]):
        count += 1
print(count)

Submission status: Runtime Error

Solution code:
A,B = map(int, input().split())
count = 0
for i in range(A, B+1):
  s = str(i)
  if s[0] == s[-1] and s[1] == i[-2]:
    count += 1
print(count)

Submission status: Runtime Error

Solution code:
A,B = map(int, input().split())
count = 0
for i in range(A, B+1):
  s = str(i)
  if s[0] == s[4] and s[1] == i[3]:
    count += 1
print(count)

Submission status: Runtime Error

Solution code:
A,B = map(int, input().split())
count = 0
for i in range(A, B+1):
  i = str(i)
  if i[0] == i[4] and i[1] == i[3]:
    count += 1
print(count)

Submission status: Runtime Error

Solution code:
A,B = map(int, input().split())
count = 0
for i in range(A, B+1):
  i = str(i)
  if i == i[::-1]:
    count += 1
print(count)

Submission status: Runtime Error

Solution code:
a,b,c = map(str, input().split())
d,e,f = map(str, input().split())
g,h,q = map(str, input().split())

print(a+e+q)

Submission status: Runtime Error

Solution code:
a = [x for x in input().split()]
b = [x for x in input().split()]
c = [x for x in input().split()]
print(a[0]+b[1]+c[2])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
row1 = list(map(str, input().split()))
row2 = list(map(str, input().split()))
row3 = list(map(str, input().split()))
matrix = [row1, row2, row3]
print(matrix[0][0]+matrix[1][1]+matrix[2][2])

Submission status: Runtime Error

Solution code:
row1 = list(map(str, input().split()))
row2 = list(map(str, input().split()))
row3 = list(map(str, input().split()))
matrix = [row1, row2, row2]
print(matrix[0][0]+matrix[1][1]+matrix[2][2])

Submission status: Runtime Error

Solution code:
row1 = list(map(str, input().split()))
row2 = list(map(str, input().split()))
row3 = list(map(str, input().split()))
matrix = [row1, row2, row2]
print(matrix)
print(matrix[0][0]+matrix[1][1]+matrix[2][2])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, b, c = input.split()

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

Submission status: Runtime Error

Solution code:
a, b, c = input.split()

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

Submission status: Runtime Error

Solution code:
a, b, c = input.split()

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

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
#include <cstdio>
using namespace std;
int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  string a, b, c;
  cin >> a >> b >> c;
  cout << a[0] << b[1] << c[2];
}

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

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

Submission status: Runtime Error

Solution code:
a,b = map(int,input().split())
print(abs((a-2)*(b-2)))

Submission status: Runtime Error

Solution code:
import math
N,M=map(int,input().split())
n=math.fabs(N-2)
m=math.fabs(M-2)
ans=int(n*m)
print(ans)

Submission status: Runtime Error

Solution code:
a,b,c,d=map(int,open(0).readlines());print([a,b][a>b]+[c,d][c>d])

Submission status: Runtime Error

Solution code:
ans=''
for i in range

Submission status: Runtime Error

Solution code:
a=[(input()) for i in range(9)]
print(a[0]+a[4]+a[8])

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
a, b = map(int,input().strip().split(' '))
a_rev = ""
i = 0
j = 0
cnt = 0

#chk = []

for i in range(b - a):
    a+=1
    
    for j in range(len(str(a))):
        a_rev = a_rev + str(a)[len(str(a)) - 1 - j]   

    if str(a_rev) == str(a):
        cnt+=1
        #chk.append(a_rev)   #test
    else:
        pass
    
    a_rev =""
    
print(cnt)
#print(chk)

Submission status: Runtime Error

Solution code:
N = 3
c = []
i = 0


for i in range(N):
	c.append(list(map(str, input().strip().split(' '))))	#[A][B]

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
c = list(map(str,input().split()))
d = (c[0],c[4],c[8])
print("".join(d))

Submission status: Runtime Error

Solution code:
A,B=map(int,input().split())
S=0
for I in range(A,B+1):
	Q=str(I)
	R=Q[::-1]
	if R==Q:
		S+=1
print(S)

Submission status: Runtime Error

Solution code:
n,m = map(int,input().split())

if n==1 and m==1:
    ans = 1
elif n==1 or m==1:
    ans = n*m-2
else:
    ans = (n-2)*(m-2)

print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

print(c_list[0] + c_list[3] + c_list[6])

Submission status: Runtime Error

Solution code:
c_list = []
for i in range(3):
    c_list.append(input().split())
    
print(c_list[0] + c_list[3] + c_list[5])

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
count=0
for i in range(a,b+1):
  i=str(i)
  if i==i[::-1]:
    count+=1
print(count)

Submission status: Runtime Error

Solution code:
a = []
for i in range(3)
    a.append(map(int, raw_input().split()))
print(a[0][0], a[1][1], a[2][2])

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n1 = list(map(str, input().split()))
n2 = list(map(str, input().split()))
n3 = list(map(str, input().split()))

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
c1, c2, c3 = map(list,map(int, [input() for i in range(3)]))
print(c1[0]+c2[1]+c3[2])

Submission status: Runtime Error

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

print(ans)

Submission status: Runtime Error

Solution code:
a = map(int, input().split())
b = map(int, input().split())
c = map(int, input().split())
ans = a[0]+b[1]+c[2]
print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
row = 3
column = 3
c=[]

for i in range(1, (row+1)):
    c.append(list(map(str, input().split())))
print(c[0][0],c[1][1],c[2][2],sep="")

Submission status: Runtime Error

Solution code:
a, b = map(int,input().split())
[a,b] = [a,b].sort()
if a == 1:
    if b==1:
        print(b)
    else:
        print(b-2)
else:
    print((a-2) * (b-2))

Submission status: Runtime Error

Solution code:
a, b = map(int,input().split())
a,b = list(a,b).sort()
if a == 1:
    if b==1:
        print(b)
    else:
        print(b-2)
else:
    print((a-2) * (b-2))

Submission status: Runtime Error

Solution code:
a, b = map(int,input().split())
if a == 1:
    if b==1:
        print(b)
    else:
        print(b-2)
else:
    print((a-2) * (b-2))

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
a = list( map(input().split()))
b = list( map(input().split()))
c = list( map(input().split()))

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

Submission status: Runtime Error

Solution code:
a = list( map(input().split()))
b = list( map(input().split()))
c = list( map(input().split()))

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

Submission status: Runtime Error

Solution code:
nums1 = list(map(int, input().split()))
nums2 = list(map(int, input().split()))
nums3 = list(map(int, input().split()))


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

Submission status: Runtime Error

Solution code:
N,M = map(int,input().split())

print(abs(N-2)*abs(M-2))

Submission status: Runtime Error

Solution code:
A,B=map(int,input().split())
if A==1 and B==1:
    print(1)
elif A==1:
    print(A-2)
elif B==1:
    print(A-2)
else:
    print((A-2)*(B-2))

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
grid=[]
for i in range(3):
    grid.append(list(map(int,input().split())))
S=''
for i in range(3):
    S=S+grid[i][i]
print(S)

Submission status: Runtime Error

Solution code:
c1 = list(map(int,input().split()))
c2 = list(map(int,input().split()))
c3 = list(map(int,input().split()))

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