#include <stdio.h>

int main(void) {
	char c;
	scanf("%c",&c);
	printf("%c\n",c);
	printf("%d\n",c);
	return 0;
}
