The following languages are additionally available for the problems from the contest

April Fools Day Contest 2021:

- Secret 2021

Virtual contest is a way to take part in past contest, as close as possible to participation on time. It is supported only ICPC mode for virtual contests.
If you've seen these problems, a virtual contest is not for you - solve these problems in the archive.
If you just want to solve some problem from a contest, a virtual contest is not for you - solve this problem in the archive.
Never use someone else's code, read the tutorials or communicate with other person during a virtual contest.

No tag edit access

The problem statement has recently been changed. View the changes.

×
G. Encoded message

time limit per test

1 secondmemory limit per test

256 megabytesinput

standard inputoutput

standard outputInput

The first line of the input contains a single integer $$$N$$$ ($$$1 \le N \le 24$$$). The next $$$N$$$ lines contain $$$5$$$ space-separated integers each. The first three integers will be between 0 and 2, inclusive. The last two integers will be between 0 and 3, inclusive. The sum of the first three integers will be equal to the sum of the last two integers.

Output

Output the result – a string of lowercase English letters.

Examples

Input

1 1 0 0 1 0

Output

a

Input

10 2 0 0 1 1 1 1 1 2 1 2 1 0 1 2 1 1 0 1 1 2 1 0 2 1 1 1 1 2 1 1 2 1 3 1 2 0 0 1 1 1 1 0 1 1 1 1 2 2 2

Output

codeforcez

Codeforces (c) Copyright 2010-2021 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Jul/26/2021 20:53:28 (j3).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|