#!/usr/bin/env cscript
#include "stdio.h"
#include "stdlib.h"
#include "string.h"

int
main(int argc, char *argv[]) {
	int column_index;
	char *column_string, *needle;

	column_string = malloc(3 + 1);
	column_index = 1;
	needle = column_string;

	column_index -= 1;

	while (column_index > 0) {
		*needle++ = (char)(column_index % ('Z' - 'A' + 1) + 'A');
		column_index /= 'Z' - 'A' + 1;
	}

	printf("%s\n", column_string);
	free(column_string);
}