#include <iostream>
#include <iomanip>
#include <cstring>
int main()
{
char a[]="й";
std::cout << std::strlen(a) << "\n\n";
for(unsigned char c: a)
{
std::cout << std::hex << (int)c << '\n';
}
std::cout << "^-- there is a terminating '\\0'.";
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8aW9tYW5pcD4KI2luY2x1ZGUgPGNzdHJpbmc+CgppbnQgbWFpbigpCnsKICAgIGNoYXIgYVtdPSLQuSI7CiAgICBzdGQ6OmNvdXQgPDwgc3RkOjpzdHJsZW4oYSkgPDwgIlxuXG4iOwogICAgZm9yKHVuc2lnbmVkIGNoYXIgYzogYSkKICAgIHsKICAgICAgICBzdGQ6OmNvdXQgPDwgc3RkOjpoZXggPDwgKGludCljIDw8ICdcbic7CiAgICB9CiAgICBzdGQ6OmNvdXQgPDwgIl4tLSB0aGVyZSBpcyBhIHRlcm1pbmF0aW5nICdcXDAnLiI7Cn0K