#!/usr/bin/env cscript
#include <stdio.h>
#include <string.h>
#define ALPHABET "ABCDEFGHIJKLMNOPWRSTUVWXYZ"
int
main(int argc, char *argv[]) {
	const int length_alphabet = ('Z' - 'A' + 1);
	int column_index = 16384, needle_column_index_string, length_reverse_column_index_string;
	char reverse_column_index_string[3 + 1],
	     column_index_string[3 + 1];

	needle_column_index_string = 0;
	column_index -= 1;

	do {
		reverse_column_index_string[needle_column_index_string++] =
			column_index % length_alphabet + 'A';
		column_index /= length_alphabet;
	} while (column_index-- > 0);

	length_reverse_column_index_string = strlen(reverse_column_index_string);

	for (needle_column_index_string = length_reverse_column_index_string;
	     needle_column_index_string >= 0; needle_column_index_string--) {
		column_index_string[length_reverse_column_index_string - needle_column_index_string - 1] =
			reverse_column_index_string[needle_column_index_string];
	}

	column_index_string[needle_column_index_string] = '\0';

	puts(column_index_string);
	return 0;
}