시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 512 MB94453648.000%

문제

Petya is developing his own spreadsheet editor. His editor will use the following naiming for columns: the first 26 columns will be named by the letters of the alphabet: A, B, C, ..., Z. The following columns, starting from column 27, will be named using pairs of letters: AA, AB, ..., AZ, BA, BB, ..., BZ, ..., ZZ. Then triples of letters will be used: AAA, AAB, AAC, ..., then strings of four letters, and so on.

Now Petya needs to get the name of the column by its number. Help him to create the corresponding piece of code.

입력

Input data contains several test cases. The first line of input contains an integer t — the number of test cases (1 ≤ t ≤ 1000).

The following t lines contain one integer k each (1 ≤ k ≤ 109).

출력

For each test case output the name of the k-th column in the spreadsheet editor.

예제 입력 1

4
1
10
100
1000

예제 출력 1

A
J
CV
ALL