|시간 제한||메모리 제한||제출||정답||맞은 사람||정답 비율|
|2 초||512 MB||67||29||24||42.857%|
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.
4 1 10 100 1000
A J CV ALL