#include <string>
#include <cctype>
#include <iostream>
void printCharsAsHex(std::ostream& os, const std::string& s)
{
for (auto ch : s)
if (ch != ' ' && !std::ispunct(ch))
os << std::hex << (int) ch;
else
os << ch; // A space is a space.
os << '\n' ;
}
int main()
{
std::string line;
while (std::getline(std::cin, line))
printCharsAsHex(std::cout, line);
}
I2luY2x1ZGUgPHN0cmluZz4KI2luY2x1ZGUgPGNjdHlwZT4KI2luY2x1ZGUgPGlvc3RyZWFtPgogCnZvaWQgcHJpbnRDaGFyc0FzSGV4KHN0ZDo6b3N0cmVhbSYgb3MsIGNvbnN0IHN0ZDo6c3RyaW5nJiBzKQp7CiAgICBmb3IgKGF1dG8gY2ggOiBzKQogICAgICAgIGlmIChjaCAhPSAnICcgJiYgIXN0ZDo6aXNwdW5jdChjaCkpCiAgICAgICAgICAgIG9zIDw8IHN0ZDo6aGV4IDw8IChpbnQpIGNoOwogICAgICAgIGVsc2UKICAgICAgICAgICAgb3MgPDwgY2g7IC8vIEEgc3BhY2UgaXMgYSBzcGFjZS4KICAgICAgICAgICAgCiAgICBvcyA8PCAnXG4nIDsKfQogCmludCBtYWluKCkKewogICAgc3RkOjpzdHJpbmcgbGluZTsKIAogICAgd2hpbGUgKHN0ZDo6Z2V0bGluZShzdGQ6OmNpbiwgbGluZSkpCiAgICAgICAgcHJpbnRDaGFyc0FzSGV4KHN0ZDo6Y291dCwgbGluZSk7Cn0=