#include<iostream>
#include<iomanip> // std::endl
#include<string>
#include<algorithm> // transform
int main()
{
const std::string localename = getenv("LANG");
std::cout << localename << std::endl;
std::locale::global(std::locale(localename.c_str()));
std::wcout.imbue(std::locale());
std::wstring wstr=L"ПривЕт";
transform(wstr.begin(), wstr.end(), wstr.begin(), towlower);
std::wcout << wstr << std::endl;
}
I2luY2x1ZGU8aW9zdHJlYW0+CiNpbmNsdWRlPGlvbWFuaXA+IC8vIHN0ZDo6ZW5kbAojaW5jbHVkZTxzdHJpbmc+CiNpbmNsdWRlPGFsZ29yaXRobT4gLy8gdHJhbnNmb3JtCgppbnQgbWFpbigpCnsKCQljb25zdCBzdGQ6OnN0cmluZyBsb2NhbGVuYW1lID0gZ2V0ZW52KCJMQU5HIik7CgkJc3RkOjpjb3V0IDw8IGxvY2FsZW5hbWUgPDwgc3RkOjplbmRsOwogICAgICAgIHN0ZDo6bG9jYWxlOjpnbG9iYWwoc3RkOjpsb2NhbGUobG9jYWxlbmFtZS5jX3N0cigpKSk7CiAgICAgICAgc3RkOjp3Y291dC5pbWJ1ZShzdGQ6OmxvY2FsZSgpKTsKCiAgICAgICAgc3RkOjp3c3RyaW5nIHdzdHI9TCLQn9GA0LjQstCV0YIiOwoKICAgICAgICB0cmFuc2Zvcm0od3N0ci5iZWdpbigpLCB3c3RyLmVuZCgpLCB3c3RyLmJlZ2luKCksIHRvd2xvd2VyKTsKCiAgICAgICAgc3RkOjp3Y291dCA8PCB3c3RyIDw8IHN0ZDo6ZW5kbDsKfQ==