#include <iostream>
#include <sstream>
// Include the std::put_money and other utilities
#include <iomanip>
int main(int argc, char **argv)
{
// Value in cents!
const int basepay = 10000;
std::stringstream ss;
// Sets the local configuration
ss.imbue(std::locale(""));
ss << std::showbase << std::put_money(basepay);
std::cout << std::locale("").name() << ": " << ss.str() << '\n';
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3N0cmVhbT4KLy8gSW5jbHVkZSB0aGUgc3RkOjpwdXRfbW9uZXkgYW5kIG90aGVyIHV0aWxpdGllcwojaW5jbHVkZSA8aW9tYW5pcD4KCmludCBtYWluKGludCBhcmdjLCBjaGFyICoqYXJndikKewogICAgLy8gVmFsdWUgaW4gY2VudHMhCiAgICBjb25zdCBpbnQgYmFzZXBheSA9IDEwMDAwOwogICAgc3RkOjpzdHJpbmdzdHJlYW0gc3M7CgogICAgLy8gU2V0cyB0aGUgbG9jYWwgY29uZmlndXJhdGlvbgogICAgc3MuaW1idWUoc3RkOjpsb2NhbGUoIiIpKTsKICAgIHNzIDw8IHN0ZDo6c2hvd2Jhc2UgPDwgc3RkOjpwdXRfbW9uZXkoYmFzZXBheSk7CgogICAgc3RkOjpjb3V0IDw8IHN0ZDo6bG9jYWxlKCIiKS5uYW1lKCkgPDwgIjogIiA8PCBzcy5zdHIoKSA8PCAnXG4nOwoKICAgIHJldHVybiAwOwp9