#include<stdio.h>
int main(void) {
	int i, x;
	for (x = 1;x < 10;x++) {
	for (i = 1;i < 10;i++) {
		printf("%dx%d=%d\n", x, i, x*i);
	}
}
	return 0;
}#include<stdio.h>
int main(void) {
	int i;
	char ch;
	ch = getchar();
	if (ch =='A') {
		i = 1;
	}
	else if (ch=='B') {
		i = 2;
	}
	else if (ch=='C') {
		i = 3;
	}
	else if (ch=='D') {
		i = 4;
	}
	else if (ch =='E') {
		i = 5;
	}
	printf("%d\n",i);
	return 0;
}