#include <iostream>
int main() {
unsigned char x1, x2;
scanf("%c", &x1);
x1 = ~x1;
printf("%x ", x1);
while (scanf("%c", &x2)) {
if (x2 == '\n') break;
x2 = x1 ^ x2;
printf("%x ", x2);
x1 = x2;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50IG1haW4oKSB7Cgl1bnNpZ25lZCBjaGFyIHgxLCB4MjsgCglzY2FuZigiJWMiLCAmeDEpOyAKCXgxID0gfngxOyAKCXByaW50ZigiJXggIiwgeDEpOwoJd2hpbGUgKHNjYW5mKCIlYyIsICZ4MikpIHsKCQlpZiAoeDIgPT0gJ1xuJykgYnJlYWs7IAoJCXgyID0geDEgXiB4MjsgCgkJcHJpbnRmKCIleCAiLCB4Mik7CgkJeDEgPSB4MjsKCX0KCXJldHVybiAwOwp9