#include <iostream>
#include <locale>
int main()
{
// using system narrow character encoding
// (UTF-8 except on Windows)
std::cout << "3² = 9\n"
<< "√9 = 3\n";
// using system wide character encoding
// (UCS4 except on Windows)
std::wcout.sync_with_stdio(false); // or set the C locale too
std::wcout.imbue(std::locale(""));
std::wcout << L"3² = 9\n"
<< L"√9 = 3\n";
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8bG9jYWxlPgppbnQgbWFpbigpCnsKICAgIC8vIHVzaW5nIHN5c3RlbSBuYXJyb3cgY2hhcmFjdGVyIGVuY29kaW5nCiAgICAvLyAoVVRGLTggZXhjZXB0IG9uIFdpbmRvd3MpCiAgICBzdGQ6OmNvdXQgPDwgIjPCsiA9IDlcbiIKICAgICAgICAgICAgICA8PCAi4oiaOSA9IDNcbiI7CiAgICAvLyB1c2luZyBzeXN0ZW0gd2lkZSBjaGFyYWN0ZXIgZW5jb2RpbmcKICAgIC8vIChVQ1M0IGV4Y2VwdCBvbiBXaW5kb3dzKQogICAgc3RkOjp3Y291dC5zeW5jX3dpdGhfc3RkaW8oZmFsc2UpOyAvLyBvciBzZXQgdGhlIEMgbG9jYWxlIHRvbwogICAgc3RkOjp3Y291dC5pbWJ1ZShzdGQ6OmxvY2FsZSgiIikpOwogICAgc3RkOjp3Y291dCA8PCBMIjPCsiA9IDlcbiIKICAgICAgICAgICAgICAgPDwgTCLiiJo5ID0gM1xuIjsKfQo=