#include int main(int argc, char **argv) { int c; while(scanf("%x", &c) != EOF) { printf("&#%d;\n", c); } fclose(stdout); return 0; }