cout << static_cast<unsigned>(buf[0]);