#include int main(void) { int c; while((c = getchar()) >= 0) { if(c == '\n') { putchar(c); } else { printf("%%%X", c); } } return 0; }