#include <stdio.h>

int main() {
	char f;
	int c;

	for (f='D'; f>='A'; f--) {
		for (c=1; c<=6; c++) {
			printf("%c%d ", f, c);
		}
		printf("\n");
	}
}

