#include <algorithm>
#include <iostream>
void output_hex(char ch)
{
std::cout << std::hex << int(ch);
}
int main(int argc, char **argv)
{
std::string str("hello");
std::for_each(str.begin(), str.end(), output_hex);
return 0;
}
I2luY2x1ZGUgPGFsZ29yaXRobT4KI2luY2x1ZGUgPGlvc3RyZWFtPgoKdm9pZCBvdXRwdXRfaGV4KGNoYXIgY2gpCnsKICAgc3RkOjpjb3V0IDw8IHN0ZDo6aGV4IDw8IGludChjaCk7Cn0KCmludCBtYWluKGludCBhcmdjLCBjaGFyICoqYXJndikKewogICBzdGQ6OnN0cmluZyBzdHIoImhlbGxvIik7CiAgIHN0ZDo6Zm9yX2VhY2goc3RyLmJlZ2luKCksIHN0ci5lbmQoKSwgb3V0cHV0X2hleCk7CiAgIHJldHVybiAwOwp9