import java.util.*;
import java.math.*;
class Main
{
public static void main
(String[] args
) {
Scanner in
= new Scanner
(System.
in); in.useDelimiter(""); //Чтение по одному символу.
char a;
char b = in.next().charAt(0);
while(in.hasNext()){
a = in.next().charAt(0);
System.
out.
printf("%x ", a
^b
); b=a;
}
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5tYXRoLio7CiAKY2xhc3MgTWFpbgp7CiAgICBwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykKICAgIHsKICAgICAgICBTY2FubmVyIGluID0gbmV3IFNjYW5uZXIoU3lzdGVtLmluKTsKICAgICAgICBpbi51c2VEZWxpbWl0ZXIoIiIpOyAvL9Cn0YLQtdC90LjQtSDQv9C+INC+0LTQvdC+0LzRgyDRgdC40LzQstC+0LvRgy4KICAgICAgICBjaGFyIGE7CiAgICAgICAgY2hhciBiID0gaW4ubmV4dCgpLmNoYXJBdCgwKTsKICAgICAgICBTeXN0ZW0ub3V0LnByaW50KGIpOwogICAgICAgIFN5c3RlbS5vdXQucHJpbnQoJyAnKTsKICAgICAgICB3aGlsZShpbi5oYXNOZXh0KCkpewogICAgICAgICAgICBhID0gaW4ubmV4dCgpLmNoYXJBdCgwKTsKICAgICAgICAgICAgU3lzdGVtLm91dC5wcmludGYoIiV4ICIsIGFeYik7CiAgICAgICAgICAgIGI9YTsKICAgICAgICB9CiAgICB9Cn0=