题目描述
Problem Description
There is a digital display showing numbers from the set $\{\verb!0!,\verb!1!,\verb!2!,\verb!3!,\verb!4!,\verb!5!,\verb!6!,\verb!7!,\verb!8!,\verb!9!\}$. Each digit is represented by a character drawing as shown in the image below:

Given the content displayed on the screen, please output the string of digits shown.
Input Format
The first line contains a positive integer $n$, representing the number of digits displayed on the screen.
The next 5 lines describe the display. The display has a width of 5 and a length of $4n-1$, showing the concatenated pixel points of the digits in the string. Refer to the sample input for understanding the input format.
Output Format
Output a single line with $n$ digits, representing the digits displayed on the screen.
Sample Input and Output
Sample Input #1
10
***.***.***.***.*.*.***.***...*.***.***
..*.*.*.*.*.*...*.*.*.....*...*...*.*.*
***.***.*.*.***.***.***...*...*.***.***
*.....*.*.*...*...*.*.*...*...*...*.*.*
***.***.***.***...*.***...*...*.***.***
Sample Output #1
2905467138
Sample Input #2
20
***.***.***.***.***.***.***.***...*.***.***.***.***.*.*.***.***.***.***.***.***
..*.*.*.*.....*.*.*.*.*.*...*.....*.*...*.*.*.*.*.*.*.*.*.*.*.....*.*.*.*.*.*..
..*.***.***.***.*.*.***.***.***...*.***.***.***.***.***.***.***.***.***.*.*.***
..*...*.*.*...*.*.*...*.*.*.*.*...*...*.*.*...*...*...*...*...*...*...*.*.*...*
..*.***.***.***.***.***.***.***...*.***.***.***.***...*.***.***.***.***.***.***
Sample Output #2
79630966158994953905
Notes
Data Range and Constraints
The input data is guaranteed to be valid.
For all data, $1 \le n \le 10^4$.
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分