QOJ.ac

QOJ

时间限制: 1 s 内存限制: 512 MB 总分: 100

#3785. Character Recognition?

统计

Your task is to write a program to perform character recognition. Don't worry, you only need to recognize 1, 2, and 3, as follows:

.*. *** ***
.*. ..* ..*
.*. *** ***
.*. *.. ..*
.*. *** ***

Input

The input contains only one set of data, consisting of 6 lines. The first line is the number of characters $n$ ($1 \le n \le 10$). The following 5 lines each contain $4n$ characters. Each character occupies exactly 5 rows and 3 columns, followed by an empty column (filled with ".").

Output

The output should contain one line, which is the recognized characters.

Examples

Input 1

3
.*..***.***.
.*....*...*.
.*..***.***.
.*..*.....*.
.*..***.***.

Output 1

123

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.