CF-2087A•Codeforces

Password Generator

*special

Monocarp is going to register on the Codeforces website, but he can't come up with a sufficiently secure password. The requirements that his password must meet are as follows:

  • the password must consist of digits, as well as uppercase and lowercase letters of the Latin alphabet;
  • there must be exactly aa digits, exactly bb uppercase letters, and exactly cc lowercase letters;
  • for security, no two adjacent characters in the password should be the same. The lowercase and uppercase versions of the same letter are considered different characters.

Write a program that generates a password that meets all the requirements.

Input

The first line contains a single integer tt (1≤t≤10001 \le t \le 1000) — the number of test cases.

Each test case consists of one line containing three integers aa, bb, and cc (1≤a,b,c≤101 \le a, b, c \le 10).

Output

For each test case, output one line containing any suitable password. It can be shown that there is always at least one password that meets the requirements.

Sample 1
Input
2
2 1 6
3 3 6
Output
abaCaba42
b3sTpAs5w0rD

Discussions & Comments

Share your approach or ask questions about this problem (0)

You must be logged in to comment or start a discussion on this problem.

Log In

No comments yet. Be the first to comment!

Actions

Open on Codeforces

About Platform

CO
Codeforces
External Judge

Problem Discussions

0

Have questions or want to share your solution approach? Join the discussion.

View / write comments