#include <stdio.h>

int main(void) {
	char c;
	scanf("%c",&c);
	printf("%x\n",c);

	return 0;
}
