Your task is to extract and print a string of length 3 that is formed by concatenating the letters along the diagonal connecting the top-left corner to the bottom-right corner of the grid. Specifically, you need to extract the letters c_{00}, c_{11}, and c_{22}.
Input Format
The input consists of three lines, each containing three lowercase English letters separated by spaces. Each line represents a row of the grid.
Example Input:
text
a b c
d e f
g h i
Output Format
Print a single string formed by the diagonal letters in the following format:
text
c_{00}c_{11}c_{22}
Example Output:
text
aie
Examples
Example 1:
Input:
text
x y z
a b c
d e f
Output:
text
xbc
Example 2:
Input:
text
m n o
p q r
s t u
Output:
text
mqr
Solution Location
Please place your solution in the /app/ directory.
Important: place your implementation at /app/solution.py so the verifier can run it.